| Total Complexity | 7 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class NotifableTelegramChannel implements NotifableEntityInterface |
||
| 9 | { |
||
| 10 | use Notifiable; |
||
|
|
|||
| 11 | |||
| 12 | private $chatId; |
||
| 13 | private $eventUrl; |
||
| 14 | private $message; |
||
| 15 | |||
| 16 | public function __construct( |
||
| 17 | string $chatId, |
||
| 18 | string $message = '', |
||
| 19 | string $eventUrl = '' |
||
| 20 | ) |
||
| 21 | { |
||
| 22 | $this->chatId = $chatId; |
||
| 23 | $this->eventUrl = $eventUrl; |
||
| 24 | $this->message = $message; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function getChatId(): string |
||
| 28 | { |
||
| 29 | return $this->chatId; |
||
| 30 | } |
||
| 31 | |||
| 32 | public function setEventUrl(string $eventUrl): void |
||
| 33 | { |
||
| 34 | $this->eventUrl = $eventUrl; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getEventUrl(): string |
||
| 38 | { |
||
| 39 | return $this->eventUrl; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function setMessage(string $message): void |
||
| 43 | { |
||
| 44 | $this->message = $message; |
||
| 45 | } |
||
| 46 | |||
| 47 | public function getMessage(): string |
||
| 50 | } |
||
| 51 | |||
| 52 | public function getKey(): string |
||
| 53 | { |
||
| 55 | } |
||
| 56 | } |
||
| 57 |