Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
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 | 23 | public function __construct(Frame $frame, FrameAddress $frameAddress, ProtocolHeader $protocolHeader) |
|
14 | { |
||
15 | 23 | $this->frame = $frame; |
|
16 | 23 | $this->frameAddress = $frameAddress; |
|
17 | 23 | $this->protocolHeader = $protocolHeader; |
|
18 | } |
||
19 | |||
20 | 16 | public function getFrame(): Frame |
|
21 | { |
||
22 | 16 | return $this->frame; |
|
23 | } |
||
24 | |||
25 | 13 | public function getFrameAddress(): FrameAddress |
|
28 | } |
||
29 | |||
30 | 10 | public function getProtocolHeader(): ProtocolHeader |
|
33 | } |
||
34 | } |
||
35 |