| Total Complexity | 12 |
| Total Lines | 75 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | class Notification implements NotificationInterface |
||
| 10 | { |
||
| 11 | use TimestampableAwareTrait; |
||
| 12 | use PersistableAwareTrait; |
||
| 13 | |||
| 14 | private ?string $title = null; |
||
| 15 | |||
| 16 | private ?string $text = null; |
||
| 17 | |||
| 18 | private ?string $url = null; |
||
| 19 | |||
| 20 | private ?string $urlTitle = null; |
||
| 21 | |||
| 22 | private ?string $label = null; |
||
| 23 | |||
| 24 | private bool $read = false; |
||
| 25 | |||
| 26 | public function getTitle(): ?string |
||
| 27 | { |
||
| 28 | return $this->title; |
||
| 29 | } |
||
| 30 | |||
| 31 | public function setTitle(?string $title): void |
||
| 32 | { |
||
| 33 | $this->title = $title; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function getText(): ?string |
||
| 37 | { |
||
| 38 | return $this->text; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function setText(?string $text): void |
||
| 42 | { |
||
| 43 | $this->text = $text; |
||
| 44 | } |
||
| 45 | |||
| 46 | public function getUrl(): ?string |
||
| 47 | { |
||
| 48 | return $this->url; |
||
| 49 | } |
||
| 50 | |||
| 51 | public function setUrl(?string $url): void |
||
| 52 | { |
||
| 53 | $this->url = $url; |
||
| 54 | } |
||
| 55 | |||
| 56 | public function getLabel(): ?string |
||
| 57 | { |
||
| 58 | return $this->label; |
||
| 59 | } |
||
| 60 | |||
| 61 | public function setLabel(?string $label): void |
||
| 62 | { |
||
| 63 | $this->label = $label; |
||
| 64 | } |
||
| 65 | |||
| 66 | public function getUrlTitle(): ?string |
||
| 67 | { |
||
| 68 | return $this->urlTitle; |
||
| 69 | } |
||
| 70 | |||
| 71 | public function setUrlTitle(?string $urlTitle): void |
||
| 74 | } |
||
| 75 | |||
| 76 | public function isRead(): bool |
||
| 79 | } |
||
| 80 | |||
| 81 | public function setRead(bool $read): void |
||
| 84 | } |
||
| 85 | } |
||
| 86 |