Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Modal
- {
- private int $id;
- private String $title;
- private String $text;
- /*
- tableau contenant des objets domain ( int id et string nomDomaine)
- */
- private array $urls;
- /**
- * @return mixed
- */
- public function getTitle():String
- {
- return $this->title;
- }
- /**
- * @param mixed $title
- */
- public function setTitle(String $title):void
- {
- $this->title = $title;
- }
- /**
- * @return int
- */
- public function getId(): int
- {
- return $this->id;
- }
- /**
- * @param int $id
- */
- public function setId(int $id): void
- {
- $this->id = $id;
- }
- /**
- * @return mixed
- */
- public function getText(): String
- {
- return $this->text;
- }
- /**
- * @param mixed $text
- */
- public function setText(String $text):void
- {
- $this->text = $text;
- }
- /**
- * @return mixed
- */
- public function getUrls():void
- {
- return $this->urls;
- }
- public function addUrl(Domain $url): void
- {
- $this->urls[] = $url;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement