| 1 | <?php |
||
| 4 | class MessageEcho extends Message |
||
| 5 | { |
||
| 6 | |||
| 7 | /** |
||
| 8 | * @var bool |
||
| 9 | */ |
||
| 10 | protected $isEcho; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var int |
||
| 14 | */ |
||
| 15 | protected $appId; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var null|string |
||
| 19 | */ |
||
| 20 | protected $metadata; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * MessageEcho constructor. |
||
| 24 | * |
||
| 25 | * @param bool $isEcho |
||
| 26 | * @param int $appId |
||
| 27 | * @param string $messageId |
||
| 28 | * @param int $sequence |
||
| 29 | * @param string|null $metadata |
||
| 30 | * @param string|null $text |
||
| 31 | * @param string|null $quickReply |
||
| 32 | * @param array $attachments |
||
| 33 | */ |
||
| 34 | public function __construct( |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @return boolean |
||
| 53 | */ |
||
| 54 | public function isEcho(): bool |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @return int |
||
| 61 | */ |
||
| 62 | public function getAppId(): int |
||
| 66 | |||
| 67 | /** |
||
| 68 | * @return null|string |
||
| 69 | */ |
||
| 70 | public function getMetadata() |
||
| 74 | |||
| 75 | /** |
||
| 76 | * @param array $payload |
||
| 77 | * @return static |
||
| 78 | */ |
||
| 79 | public static function create(array $payload) |
||
| 88 | } |