| 1 | <?php |
||
| 10 | class Message implements MessageInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var int |
||
| 14 | */ |
||
| 15 | private $queryType; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var array |
||
| 19 | */ |
||
| 20 | private $query; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var OptionsInterface |
||
| 24 | */ |
||
| 25 | private $options; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param int $queryType |
||
| 29 | * @param array $query |
||
| 30 | * @param OptionsInterface $options |
||
| 31 | */ |
||
| 32 | 21 | public function __construct(int $queryType = null, array $query = null, OptionsInterface $options = null) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @inheritdoc |
||
| 41 | */ |
||
| 42 | 1 | public function getQueryType(): int |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @inheritdoc |
||
| 49 | */ |
||
| 50 | 1 | public function setCommand(int $queryType): MessageInterface |
|
| 56 | |||
| 57 | /** |
||
| 58 | * @inheritdoc |
||
| 59 | */ |
||
| 60 | 16 | public function setQuery($query): MessageInterface |
|
| 66 | |||
| 67 | /** |
||
| 68 | * @inheritdoc |
||
| 69 | */ |
||
| 70 | 17 | public function getOptions(): OptionsInterface |
|
| 74 | |||
| 75 | /** |
||
| 76 | * @inheritdoc |
||
| 77 | */ |
||
| 78 | 19 | public function setOptions(OptionsInterface $options): MessageInterface |
|
| 84 | |||
| 85 | /** |
||
| 86 | * @inheritdoc |
||
| 87 | */ |
||
| 88 | 17 | public function toArray(): array |
|
| 96 | |||
| 97 | /** |
||
| 98 | * @return array |
||
| 99 | */ |
||
| 100 | 15 | public function jsonSerialize(): array |
|
| 104 | } |
||
| 105 |