Total Complexity | 7 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Coverage | 89.47% |
Changes | 0 |
1 | <?php |
||
13 | final class PackUtil |
||
14 | { |
||
15 | /** |
||
16 | * @param int $longValue |
||
17 | * |
||
18 | * @return string |
||
19 | */ |
||
20 | 9 | public static function packLongLE($longValue) |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param string $value |
||
37 | * |
||
38 | * @return int |
||
39 | */ |
||
40 | 10 | public static function unpackLongLE($value) |
|
48 | } |
||
49 | |||
50 | /** |
||
51 | * Cast to signed int 32-bit. |
||
52 | * |
||
53 | * @param int $int |
||
54 | * |
||
55 | * @return int |
||
56 | */ |
||
57 | 5 | public static function toSignedInt32($int) |
|
70 |