Total Complexity | 4 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
13 | class PingSerializer |
||
14 | 12 | { |
|
15 | /** |
||
16 | 12 | * @var \BitWasp\Buffertools\Types\Uint64 |
|
17 | 12 | */ |
|
18 | 12 | private $uint64; |
|
19 | public function __construct() |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | 9 | * @param Ping $ping |
|
26 | * @return BufferInterface |
||
27 | 9 | */ |
|
28 | 9 | public function serialize(Ping $ping): BufferInterface |
|
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param Parser $parser |
||
35 | * @return Ping |
||
36 | 6 | */ |
|
37 | public function fromParser(Parser $parser): Ping |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param BufferInterface $data |
||
44 | * @return Ping |
||
45 | */ |
||
46 | 6 | public function parse(BufferInterface $data): Ping |
|
51 |