| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class PingSerializer |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | 12 | * @param Ping $ping |
|
| 15 | * @return BufferInterface |
||
| 16 | 12 | */ |
|
| 17 | 12 | public function serialize(Ping $ping): BufferInterface |
|
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @param Parser $parser |
||
| 24 | * @return Ping |
||
| 25 | 9 | */ |
|
| 26 | public function fromParser(Parser $parser): Ping |
||
| 29 | 6 | } |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @param BufferInterface $data |
||
| 33 | * @return Ping |
||
| 34 | */ |
||
| 35 | public function parse(BufferInterface $data): Ping |
||
| 40 |