| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | abstract class AbstractDecoder implements Decoder |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Retrieve the decoded value of the given JSON |
||
| 15 | * |
||
| 16 | * @param string $json |
||
| 17 | * @return mixed |
||
| 18 | * @throws Throwable |
||
| 19 | */ |
||
| 20 | abstract protected function decodeJson(string $json): mixed; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Decode the given JSON. |
||
| 24 | * |
||
| 25 | * @param string $json |
||
| 26 | * @return DecodedValue |
||
| 27 | */ |
||
| 28 | 92 | public function decode(string $json): DecodedValue |
|
| 39 |