| 1 | <?php declare(strict_types=1); |
||
| 8 | final class EchoRequest implements Message |
||
| 9 | { |
||
| 10 | public const MESSAGE_TYPE_ID = 58; |
||
| 11 | public const WIRE_SIZE = 64; |
||
| 12 | |||
| 13 | private $payload; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @param string $payload |
||
| 17 | * @throws InvalidValueException |
||
| 18 | */ |
||
| 19 | 5 | public function __construct(string $payload) |
|
| 27 | |||
| 28 | 1 | public function getPayload(): string |
|
| 32 | |||
| 33 | 1 | public function getTypeId(): int |
|
| 37 | |||
| 38 | 1 | public function getWireSize(): int |
|
| 42 | } |
||
| 43 |