1 | <?php |
||
7 | class Message |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $messageId; |
||
13 | |||
14 | /** |
||
15 | * @var string|null |
||
16 | */ |
||
17 | protected $text; |
||
18 | |||
19 | /** |
||
20 | * @var string|null |
||
21 | */ |
||
22 | protected $quickReply; |
||
23 | |||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | protected $attachments; |
||
28 | |||
29 | /** |
||
30 | * @var string|null |
||
31 | */ |
||
32 | protected $replyTo; |
||
33 | |||
34 | /** |
||
35 | * @var array |
||
36 | */ |
||
37 | protected $entities; |
||
38 | |||
39 | /** |
||
40 | * @var array |
||
41 | */ |
||
42 | protected $traits; |
||
43 | |||
44 | /** |
||
45 | * @var array |
||
46 | */ |
||
47 | protected $detectedLocales; |
||
48 | |||
49 | /** |
||
50 | * Message constructor. |
||
51 | * |
||
52 | * @param string $text |
||
53 | * @param string $quickReply |
||
54 | */ |
||
55 | 7 | public function __construct( |
|
74 | |||
75 | 3 | public function getMessageId(): string |
|
79 | |||
80 | 2 | public function getText(): ?string |
|
84 | |||
85 | 2 | public function hasText(): bool |
|
89 | |||
90 | 2 | public function getQuickReply(): ?string |
|
94 | |||
95 | 2 | public function hasQuickReply(): bool |
|
99 | |||
100 | 2 | public function getAttachments(): array |
|
104 | |||
105 | 2 | public function hasAttachments(): bool |
|
109 | |||
110 | public function getReplyTo(): ?string |
||
114 | |||
115 | public function isReply(): bool |
||
119 | |||
120 | 2 | public function getEntities(): array |
|
124 | |||
125 | 2 | public function hasEntities(): bool |
|
129 | |||
130 | public function getTraits(): array |
||
134 | |||
135 | public function hasTraits(): bool |
||
139 | |||
140 | public function getDetectedLocales(): array |
||
144 | |||
145 | public function hasDetectedLocales(): bool |
||
149 | |||
150 | /** |
||
151 | * @return \Kerox\Messenger\Model\Callback\Message |
||
152 | */ |
||
153 | 6 | public static function create(array $callbackData) |
|
165 | } |
||
166 |