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