Total Complexity | 4 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | final class ImporterChain implements ImporterChainInterface |
||
14 | { |
||
15 | /** @var ImporterInterface[] */ |
||
16 | private $importers = []; |
||
17 | |||
18 | public function addImporter(ImporterInterface $importer): void |
||
19 | { |
||
20 | $this->importers[] = $importer; |
||
21 | } |
||
22 | |||
23 | public function getImporterForResource(string $resourceCode): ImporterInterface |
||
34 | )); |
||
35 | } |
||
37 |