| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class Json |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Decode a Json string to return an array content. |
||
| 20 | * |
||
| 21 | * @param mixed $string The string to decode. |
||
| 22 | * |
||
| 23 | * @return array The decoded array. |
||
| 24 | * |
||
| 25 | * @throws JsonException If the string can not be decoded. |
||
| 26 | */ |
||
| 27 | public static function decode($string): array |
||
| 42 |