Advertisement
nicolas-chuet

class modal

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