| Conditions | 2 |
| Paths | 2 |
| Total Lines | 6 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 60 | 152 | public function __construct() |
|
| 61 | { |
||
| 62 | 152 | $this->decoder = extension_loaded('simdjson') ? new SimdjsonDecoder() : new JsonDecoder(); |
|
| 63 | 152 | $this->pointers = new Pointers(); |
|
| 64 | 152 | $this->onDecodingError = fn (DecodedValue $decoded) => throw new DecodingException($decoded); |
|
| 65 | 152 | $this->onSyntaxError = fn (SyntaxException $e) => throw $e; |
|
| 66 | } |
||
| 79 |