Advertisement
Gleidson_21

interfaces

Jul 30th, 2021
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.50 KB | None | 0 0
  1. <?php
  2.  
  3. interface Crud {
  4.     public function create($data);
  5.     public function read();
  6.     public function update();
  7.     public function delete();
  8.    
  9. }
  10.  
  11. class Noticias implements Crud {
  12.  
  13.     public function create($data){
  14.         // para criar uma noticia
  15.     }
  16.  
  17.     public function read(){
  18.         //para ler uma noticia
  19.     }
  20.  
  21.     public function update(){
  22.         //para atualizar uma noticia
  23.     }
  24.  
  25.     public function delete(){
  26.         // para deletar uma notica
  27.     }
  28. }
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement