Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | trait Protocol |
||
12 | { |
||
13 | /** |
||
14 | * @param int $seq |
||
15 | * @param string $message |
||
16 | * @return string |
||
17 | */ |
||
18 | protected function packing(int $seq, string $message) : string |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @param string $packet |
||
25 | * @return array [int:seq, string:message] |
||
26 | */ |
||
27 | protected function unpacking(string $packet) : array |
||
35 |