1 | <?php |
||
34 | final class Version implements VersionInterface |
||
35 | { |
||
36 | use HasMigrationBusTrait; |
||
37 | |||
38 | /** @var VersionId */ |
||
39 | private $id; |
||
40 | |||
41 | /** @var bool */ |
||
42 | private $migrated; |
||
43 | |||
44 | /** @var MigrationInterface */ |
||
45 | private $migration; |
||
46 | |||
47 | /** |
||
48 | * @param MigrationInterface $migration |
||
49 | * @param bool $migrated |
||
50 | * @param null|VersionId $id Optionally force the ID to be something specific. |
||
51 | * @param null|MigrationBusInterface $bus |
||
52 | */ |
||
53 | 120 | public function __construct( |
|
68 | |||
69 | /** |
||
70 | * @inheritdoc |
||
71 | */ |
||
72 | 154 | public function getId() |
|
76 | |||
77 | /** |
||
78 | * @inheritdoc |
||
79 | */ |
||
80 | 49 | public function __toString() |
|
84 | |||
85 | /** |
||
86 | * @inheritdoc |
||
87 | */ |
||
88 | 9 | public function isSameIdentityAs(EntityInterface $entity) |
|
96 | |||
97 | /** |
||
98 | * @inheritDoc |
||
99 | */ |
||
100 | 45 | public function isMigrated() |
|
104 | |||
105 | /** |
||
106 | * @inheritdoc |
||
107 | */ |
||
108 | 21 | public function getMigrationClassName() |
|
112 | |||
113 | /** |
||
114 | * @inheritdoc |
||
115 | */ |
||
116 | 6 | public function getMigrationFileName() |
|
122 | |||
123 | /** |
||
124 | * @inheritdoc |
||
125 | */ |
||
126 | 13 | public function migrate(OptionsInterface $options) |
|
132 | |||
133 | /** |
||
134 | * @return MigrationInterface |
||
135 | */ |
||
136 | 44 | protected function getMigration() { |
|
139 | } |
||
140 |