Guest User

Untitled

a guest
Dec 14th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <?php
  2. // Nous créons une classe « favoris ».
  3.  
  4. class Favoris
  5.  
  6. {
  7. private $_url;
  8. private $_fureteur;
  9. private $_statut;
  10.  
  11.  
  12. public function url()
  13. {
  14. return $this->_url;
  15. }
  16.  
  17. public function statut()
  18. {
  19. return $this->_statut;
  20. }
  21.  
  22. public function fureteur()
  23. {
  24. return $this->_fureteur;
  25. }
  26.  
  27.  
  28. public function seturl($url)
  29.  
  30. {
  31. $url = (int) $url;
  32.  
  33. }
  34.  
  35. public function setstatut($statut)
  36.  
  37. {
  38. $statut = (int) $statut;
  39.  
  40. }
  41.  
  42.  
  43.  
  44.  
  45.  
  46. }
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54. }
  55.  
  56. $favoris = new favoris;
  57. $fav->afficher();
Add Comment
Please, Sign In to add comment