| Total Complexity | 7 |
| Total Lines | 71 |
| 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 | /** |
||
| 17 | * @param string $chatId |
||
| 18 | * @param string $eventUrl |
||
| 19 | * @param string $message |
||
| 20 | */ |
||
| 21 | public function __construct( |
||
| 22 | string $chatId, |
||
| 23 | string $message = '', |
||
| 24 | string $eventUrl = '' |
||
| 25 | ) |
||
| 26 | { |
||
| 27 | $this->chatId = $chatId; |
||
| 28 | $this->eventUrl = $eventUrl; |
||
| 29 | $this->message = $message; |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function getChatId(): string |
||
| 36 | { |
||
| 37 | return $this->chatId; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param string $eventUrl |
||
| 42 | * @return void |
||
| 43 | */ |
||
| 44 | public function setEventUrl(string $eventUrl): void |
||
| 45 | { |
||
| 46 | $this->eventUrl = $eventUrl; |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | public function getEventUrl(): string |
||
| 53 | { |
||
| 54 | return $this->eventUrl; |
||
| 55 | } |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @param string $message |
||
| 59 | * @return void |
||
| 60 | */ |
||
| 61 | public function setMessage(string $message): void |
||
| 62 | { |
||
| 63 | $this->message = $message; |
||
| 64 | } |
||
| 65 | /** |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | public function getMessage(): string |
||
| 71 | } |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @return string |
||
| 75 | */ |
||
| 76 | public function getKey(): string |
||
| 81 |