| 1 | <?php declare(strict_types=1); |
||
| 7 | final class ProtocolHeader |
||
| 8 | { |
||
| 9 | public const WIRE_SIZE = 12; |
||
| 10 | |||
| 11 | private $type; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param int $type |
||
| 15 | * @throws InvalidValueException |
||
| 16 | */ |
||
| 17 | 6 | private function setType(int $type): void |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @param int $type |
||
| 28 | * @throws InvalidValueException |
||
| 29 | */ |
||
| 30 | 6 | public function __construct(int $type) |
|
| 34 | |||
| 35 | 1 | public function getType(): int |
|
| 39 | } |
||
| 40 |