| 1 | <?php |
||
| 6 | class RawMessage implements \JsonSerializable |
||
| 7 | { |
||
| 8 | protected $command; |
||
| 9 | protected $params; |
||
| 10 | |||
| 11 | public function __construct(string $command, string $params) |
||
| 16 | |||
| 17 | public function command() : string |
||
| 21 | |||
| 22 | public function params() : string |
||
| 26 | |||
| 27 | public function __toString() : string |
||
| 31 | |||
| 32 | public function toArray() : array |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Specify data which should be serialized to JSON |
||
| 42 | * @link http://php.net/manual/en/jsonserializable.jsonserialize.php |
||
| 43 | * @return mixed data which can be serialized by <b>json_encode</b>, |
||
| 44 | * which is a value of any type other than a resource. |
||
| 45 | * @since 5.4.0 |
||
| 46 | */ |
||
| 47 | public function jsonSerialize() |
||
| 51 | } |
||
| 52 |