Total Complexity | 6 |
Total Lines | 38 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | final class JsonParser implements ParserInterface |
||
18 | { |
||
19 | private bool $convertToAssociativeArray; |
||
20 | private int $depth; |
||
21 | private int $options; |
||
22 | |||
23 | /** |
||
24 | * @param bool $convertToAssociativeArray Whether objects should be converted to associative array during parsing. |
||
25 | * @param int $depth Maximum JSON recursion depth. |
||
26 | * @param int $options JSON decoding options. {@see json_decode()}. |
||
27 | */ |
||
28 | 11 | public function __construct( |
|
36 | 11 | } |
|
37 | |||
38 | 8 | public function parse(string $rawBody) |
|
57 |