1 | <?php |
||
12 | class OutgoingMessage |
||
13 | { |
||
14 | private $recipient; |
||
15 | private $text; |
||
16 | private $keyboard; |
||
17 | |||
18 | 1 | public function __construct(User $recipient, string $text, Keyboard $keyboard = null) |
|
24 | |||
25 | /** |
||
26 | * Get recipient. |
||
27 | * |
||
28 | * @return User |
||
29 | */ |
||
30 | public function getRecipient(): User |
||
34 | |||
35 | /** |
||
36 | * Get message text. |
||
37 | * |
||
38 | * @return string |
||
39 | */ |
||
40 | public function getText(): string |
||
44 | |||
45 | /** |
||
46 | * Get keyboard. |
||
47 | * |
||
48 | * @return Keyboard|null |
||
49 | */ |
||
50 | public function getKeyboard(): ?Keyboard |
||
54 | } |
||
55 |