Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
5 | final class UnknownMessage implements Message |
||
6 | { |
||
7 | private $typeId; |
||
8 | private $data; |
||
9 | |||
10 | 5 | public function __construct(int $typeId, string $data) |
|
11 | { |
||
12 | 5 | $this->typeId = $typeId; |
|
13 | 5 | $this->data = $data; |
|
14 | } |
||
15 | |||
16 | 3 | public function getData(): string |
|
17 | { |
||
18 | 3 | return $this->data; |
|
19 | } |
||
20 | |||
21 | 1 | public function getTypeId(): int |
|
24 | } |
||
25 | |||
26 | 1 | public function getWireSize(): int |
|
29 | } |
||
30 | } |
||
31 |