Total Complexity | 4 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 31.25% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class LineEncoder |
||
13 | { |
||
14 | public const META_KEY = 'a'; |
||
15 | public const TYPE_KEY = 'b'; |
||
16 | public const VALUE_KEY = 'c'; |
||
17 | public const THROWABLES_KEY = 'd'; |
||
18 | 2 | public const TYPE_THROWABLE = 'e'; |
|
19 | public const TYPE_ARRAY = 'f'; |
||
20 | 2 | ||
21 | /** |
||
22 | 2 | * @param array<mixed>|Throwable $line |
|
23 | 2 | * |
|
24 | * @return array<mixed> |
||
25 | 2 | */ |
|
26 | public static function encode($line): array |
||
57 |