| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | final class MessagePack |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @codeCoverageIgnore |
||
| 22 | */ |
||
| 23 | private function __construct() |
||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param mixed $value |
||
| 29 | * @param PackOptions|int|null $options |
||
| 30 | * |
||
| 31 | * @throws InvalidOptionException |
||
| 32 | * @throws PackingFailedException |
||
| 33 | */ |
||
| 34 | 2 | public static function pack($value, $options = null) : string |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @param UnpackOptions|int|null $options |
||
| 41 | * |
||
| 42 | * @throws InvalidOptionException |
||
| 43 | * @throws UnpackingFailedException |
||
| 44 | * |
||
| 45 | * @return mixed |
||
| 46 | */ |
||
| 47 | 2 | public static function unpack(string $data, $options = null) |
|
| 52 |