1 | <?php declare(strict_types=1); |
||
5 | final class Header |
||
6 | { |
||
7 | public const WIRE_SIZE = Frame::WIRE_SIZE + FrameAddress::WIRE_SIZE + ProtocolHeader::WIRE_SIZE; |
||
8 | |||
9 | private $frame; |
||
10 | private $frameAddress; |
||
11 | private $protocolHeader; |
||
12 | |||
13 | 3 | private function setFrame(Frame $frame): void |
|
17 | |||
18 | 3 | private function setFrameAddress(FrameAddress $frameAddress): void |
|
22 | |||
23 | 3 | private function setProtocolHeader(ProtocolHeader $protocolHeader): void |
|
27 | |||
28 | 3 | public function __construct(Frame $frame, FrameAddress $frameAddress, ProtocolHeader $protocolHeader) |
|
34 | |||
35 | 1 | public function getFrame(): Frame |
|
39 | |||
40 | 1 | public function getFrameAddress(): FrameAddress |
|
44 | |||
45 | 1 | public function getProtocolHeader(): ProtocolHeader |
|
49 | } |
||
50 |