Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | class PluginRoutingKeyConfiguration extends PluginConfiguration |
||
15 | { |
||
16 | 3 | public function __construct( |
|
17 | ApplicationConfigurationInterface $configuration, |
||
18 | protected readonly string $configRoutingKey |
||
19 | ) { |
||
20 | 3 | parent::__construct($configuration); |
|
21 | } |
||
22 | |||
23 | 3 | protected function cfg(string $key): string |
|
24 | { |
||
25 | 3 | return sprintf($key, mb_strtoupper($this->configRoutingKey)); |
|
26 | } |
||
27 | |||
28 | /** |
||
29 | * @param mixed $default |
||
30 | */ |
||
31 | 3 | protected function get(string $key, mixed $default = null, bool $nullable = true): mixed |
|
37 | 3 | ); |
|
38 | } |
||
39 | } |
||
40 |