We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Total Complexity | 6 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Coverage | 84.62% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class ConfigProcessor |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var ConfigProcessorInterface[] |
||
| 13 | */ |
||
| 14 | private array $processors; |
||
| 15 | |||
| 16 | 111 | public function __construct(iterable $processors) |
|
| 17 | { |
||
| 18 | 111 | foreach ($processors as $processor) { |
|
| 19 | 111 | $this->register($processor); |
|
| 20 | } |
||
| 21 | 111 | } |
|
| 22 | |||
| 23 | public function getProcessors(): array |
||
| 24 | { |
||
| 25 | return $this->processors; |
||
| 26 | } |
||
| 27 | |||
| 28 | 111 | public function register(ConfigProcessorInterface $configProcessor): void |
|
| 31 | 111 | } |
|
| 32 | |||
| 33 | 110 | public function process(array $config): array |
|
| 40 | } |
||
| 41 | } |
||
| 42 |