Total Complexity | 2 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
17 | final class Ext implements CanBePacked |
||
18 | { |
||
19 | /** @readonly */ |
||
20 | public $type; |
||
21 | |||
22 | /** @readonly */ |
||
23 | public $data; |
||
24 | |||
25 | 27 | public function __construct(int $type, string $data) |
|
26 | { |
||
27 | 27 | $this->type = $type; |
|
28 | 27 | $this->data = $data; |
|
29 | } |
||
30 | |||
31 | 12 | public function pack(Packer $packer) : string |
|
34 | } |
||
35 | } |
||
36 |