1 | <?php |
||
17 | class IdentifierBased implements MigrationHandlerRegistry |
||
18 | { |
||
19 | /** @var \eZ\Bundle\EzPublishIOBundle\Migration\MigrationHandlerInterface[] */ |
||
20 | private $registry = []; |
||
21 | |||
22 | /** |
||
23 | * @param \eZ\Bundle\EzPublishIOBundle\Migration\MigrationHandlerInterface[] $items Hash of MigrationHandlerInterfaces, with identifier string as key. |
||
24 | */ |
||
25 | public function __construct(array $items = []) |
||
29 | |||
30 | /** |
||
31 | * Returns the MigrationHandlerInterface matching the argument. |
||
32 | * |
||
33 | * @param string $identifier An identifier string. |
||
34 | * |
||
35 | * @throws \eZ\Publish\Core\Base\Exceptions\NotFoundException If no MigrationHandlerInterface exists with this identifier |
||
36 | * |
||
37 | * @return \eZ\Bundle\EzPublishIOBundle\Migration\MigrationHandlerInterface The MigrationHandlerInterface given by the identifier. |
||
38 | */ |
||
39 | public function getItem($identifier) |
||
47 | |||
48 | /** |
||
49 | * Returns the identifiers of all registered MigrationHandlerInterfaces. |
||
50 | * |
||
51 | * @return string[] Array of identifier strings. |
||
52 | */ |
||
53 | public function getIdentifiers() |
||
57 | } |
||
58 |