Advertisement
nicolas-chuet

modal corrigé

Apr 3rd, 2020
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. <?php
  2.  
  3. class Modal
  4. {
  5. private int $id;
  6. private String $title;
  7. private String $text;
  8. /*
  9. tableau contenant des objets domain ( int id et string nomDomaine)
  10. */
  11. private array $urls;
  12.  
  13. /**
  14. * @return mixed
  15. */
  16. public function getTitle():String
  17. {
  18. return $this->title;
  19. }
  20.  
  21. /**
  22. * @param mixed $title
  23. */
  24. public function setTitle(String $title):void
  25. {
  26. $this->title = $title;
  27. }
  28.  
  29. /**
  30. * @return int
  31. */
  32. public function getId(): int
  33. {
  34. return $this->id;
  35. }
  36.  
  37. /**
  38. * @param int $id
  39. */
  40. public function setId(int $id): void
  41. {
  42. $this->id = $id;
  43. }
  44.  
  45. /**
  46. * @return mixed
  47. */
  48. public function getText(): String
  49. {
  50. return $this->text;
  51. }
  52.  
  53. /**
  54. * @param mixed $text
  55. */
  56. public function setText(String $text):void
  57. {
  58. $this->text = $text;
  59. }
  60.  
  61. /**
  62. * @return mixed
  63. */
  64. public function getUrls():void
  65. {
  66. return $this->urls;
  67. }
  68. public function addUrl(Domain $url): void
  69. {
  70. $this->urls[] = $url;
  71. }
  72.  
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement