1 | <?php |
||
15 | final class ConfigurableRegistry implements FileListerRegistry |
||
16 | { |
||
17 | /** @var \eZ\Bundle\EzPublishIOBundle\Migration\FileListerInterface[] */ |
||
18 | private $registry = []; |
||
19 | |||
20 | /** |
||
21 | * @param \eZ\Bundle\EzPublishIOBundle\Migration\FileListerInterface[] $items Hash of FileListerInterfaces, with identifier string as key. |
||
22 | */ |
||
23 | public function __construct(array $items = []) |
||
27 | |||
28 | /** |
||
29 | * Returns the FileListerInterface matching the argument. |
||
30 | * |
||
31 | * @param string $identifier An identifier string. |
||
32 | * |
||
33 | * @throws \eZ\Publish\Core\Base\Exceptions\NotFoundException If no FileListerInterface exists with this identifier |
||
34 | * |
||
35 | * @return \eZ\Bundle\EzPublishIOBundle\Migration\FileListerInterface The FileListerInterface given by the identifier. |
||
36 | */ |
||
37 | public function getItem($identifier) |
||
45 | |||
46 | /** |
||
47 | * Returns the identifiers of all registered FileListerInterfaces. |
||
48 | * |
||
49 | * @return string[] Array of identifier strings. |
||
50 | */ |
||
51 | public function getIdentifiers() |
||
55 | } |
||
56 |