| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | interface OutgoingMessage |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Get receiver. |
||
| 16 | * |
||
| 17 | * @return User |
||
| 18 | */ |
||
| 19 | public function getRecipient(): User; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * Get message text. |
||
| 23 | * |
||
| 24 | * @return string |
||
| 25 | */ |
||
| 26 | public function getText(): string; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Get keyboard. |
||
| 30 | * |
||
| 31 | * @return Keyboard|null |
||
| 32 | */ |
||
| 33 | public function getKeyboard(): ?Keyboard; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Get the instance as an array. |
||
| 37 | * |
||
| 38 | * @return array |
||
| 39 | */ |
||
| 40 | public function toArray(): array; |
||
| 41 | } |
||
| 42 |