1 | <?php |
||
11 | class MessageReceived implements Event |
||
12 | { |
||
13 | private $text; |
||
14 | private $location; |
||
15 | private $attachment; |
||
16 | private $data; |
||
17 | |||
18 | 26 | public function __construct(string $text, Location $location = null, Attachment $attachment = null, string $data = null) |
|
25 | |||
26 | 14 | public function getText(): string |
|
30 | |||
31 | public function getLocation(): Location |
||
35 | |||
36 | 10 | public function getAttachment(): ?Attachment |
|
40 | |||
41 | 2 | public function getData(): ?string |
|
45 | |||
46 | public function toResponse($request) |
||
50 | } |
||
51 |