1 | <?php declare(strict_types=1); |
||
8 | final class FrameAddress |
||
9 | { |
||
10 | public const WIRE_SIZE = 16; |
||
11 | |||
12 | private $target; |
||
13 | private $ackRequired; |
||
14 | private $responseRequired; |
||
15 | private $sequenceNo; |
||
16 | |||
17 | 9 | private function setTarget(MacAddress $target): void |
|
21 | |||
22 | 9 | private function setAckRequired(bool $ackRequired): void |
|
26 | |||
27 | 9 | private function setResponseRequired(bool $responseRequired): void |
|
31 | |||
32 | /** |
||
33 | * @param int $sequenceNo |
||
34 | * @throws InvalidValueException |
||
35 | */ |
||
36 | 9 | private function setSequenceNo(int $sequenceNo): void |
|
44 | |||
45 | /** |
||
46 | * @param MacAddress $target |
||
47 | * @param bool $ackRequired |
||
48 | * @param bool $responseRequired |
||
49 | * @param int $sequenceNo |
||
50 | * @throws InvalidValueException |
||
51 | */ |
||
52 | 9 | public function __construct(MacAddress $target, bool $ackRequired, bool $responseRequired, int $sequenceNo) |
|
59 | |||
60 | 1 | public function getTarget(): MacAddress |
|
64 | |||
65 | 1 | public function isAckRequired(): bool |
|
69 | |||
70 | 1 | public function isResponseRequired(): bool |
|
74 | |||
75 | 1 | public function getSequenceNo(): int |
|
79 | } |
||
80 |