Total Complexity | 3 |
Total Lines | 58 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
19 | final class Config |
||
20 | { |
||
21 | /** |
||
22 | * The JSON decoder. |
||
23 | * |
||
24 | * @var Decoder |
||
25 | */ |
||
26 | public Decoder $decoder; |
||
27 | |||
28 | /** |
||
29 | * The JSON pointers. |
||
30 | * |
||
31 | * @var Pointers |
||
32 | */ |
||
33 | public Pointers $pointers; |
||
34 | |||
35 | /** |
||
36 | * The number of bytes to read in each chunk. |
||
37 | * |
||
38 | * @var int<1, max> |
||
39 | */ |
||
40 | public int $bytes = 1024 * 8; |
||
41 | |||
42 | /** |
||
43 | * The callback to run during a decoding error. |
||
44 | * |
||
45 | * @var Closure |
||
46 | */ |
||
47 | public Closure $onDecodingError; |
||
48 | |||
49 | /** |
||
50 | * The callback to run during a syntax error. |
||
51 | * |
||
52 | * @var Closure |
||
53 | */ |
||
54 | public Closure $onSyntaxError; |
||
55 | |||
56 | /** |
||
57 | * Instantiate the class |
||
58 | * |
||
59 | */ |
||
60 | 342 | public function __construct() |
|
66 | } |
||
67 | |||
68 | /** |
||
69 | * Clone the configuration |
||
70 | * |
||
71 | * @return void |
||
72 | */ |
||
73 | 30 | public function __clone(): void |
|
79 |