| 1 | <?php declare(strict_types=1); |
||
| 7 | */ |
||
| 8 | |||
| 9 | namespace Daikon\Dbal\Migration; |
||
| 10 | |||
| 11 | use Daikon\DataStructure\TypedMapInterface; |
||
| 12 | use Daikon\DataStructure\TypedMapTrait; |
||
| 13 | |||
| 14 | final class MigrationTargetMap implements TypedMapInterface |
||
| 15 | { |
||
| 16 | use TypedMapTrait; |
||
| 17 | |||
| 18 | public function __construct(iterable $migrationTargets = []) |
||
| 19 | { |
||
| 20 | $this->init($migrationTargets, [MigrationTargetInterface::class]); |
||
| 21 | } |
||
| 22 | |||
| 23 | public function getEnabledTargets(): self |
||
| 24 | { |
||
| 25 | return $this->filter( |
||
| 30 |