| 1 | <?php |
||
| 14 | class MessageReceived implements Event |
||
| 15 | { |
||
| 16 | private $chat; |
||
| 17 | private $from; |
||
| 18 | private $text; |
||
| 19 | private $location; |
||
| 20 | private $attachment; |
||
| 21 | private $data; |
||
| 22 | private $additional; |
||
| 23 | |||
| 24 | 26 | public function __construct(Chat $chat, User $from, string $text, Location $location = null, Attachment $attachment = null, string $data = null, array $additional = []) |
|
| 34 | |||
| 35 | public function getChat(): Chat |
||
| 39 | |||
| 40 | public function getFrom(): User |
||
| 44 | |||
| 45 | 14 | public function getText(): string |
|
| 49 | |||
| 50 | public function getLocation(): Location |
||
| 54 | |||
| 55 | 10 | public function getAttachment(): ?Attachment |
|
| 59 | |||
| 60 | 2 | public function getData(): ?string |
|
| 64 | |||
| 65 | public function getAdditional(): Collection |
||
| 69 | |||
| 70 | public function toResponse($request) |
||
| 74 | } |
||
| 75 |