Total Complexity | 4 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class ConfigurableDecoder |
||
13 | { |
||
14 | /** |
||
15 | * Instantiate the class. |
||
16 | * |
||
17 | * @param Config $config |
||
18 | */ |
||
19 | 371 | public function __construct(private readonly Config $config) |
|
20 | { |
||
21 | 371 | } |
|
22 | |||
23 | /** |
||
24 | * Decode the given value. |
||
25 | * |
||
26 | * @param Parser|string|int $value |
||
27 | * @return mixed |
||
28 | */ |
||
29 | 263 | public function decode(Parser|string|int $value): mixed |
|
42 | } |
||
43 | } |
||
44 |