| 1 | <?php |
||
| 13 | class MessageReceived implements Event |
||
| 14 | { |
||
| 15 | private $chat; |
||
| 16 | private $from; |
||
| 17 | private $text; |
||
| 18 | private $location; |
||
| 19 | private $attachment; |
||
| 20 | private $data; |
||
| 21 | |||
| 22 | 26 | public function __construct(Chat $chat, User $from, string $text, Location $location = null, Attachment $attachment = null, string $data = null) |
|
| 31 | |||
| 32 | public function getChat(): Chat |
||
| 36 | |||
| 37 | public function getFrom(): User |
||
| 41 | |||
| 42 | 14 | public function getText(): string |
|
| 46 | |||
| 47 | public function getLocation(): Location |
||
| 51 | |||
| 52 | 10 | public function getAttachment(): ?Attachment |
|
| 56 | |||
| 57 | 2 | public function getData(): ?string |
|
| 61 | |||
| 62 | public function toResponse($request) |
||
| 66 | } |
||
| 67 |