| Total Complexity | 2 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class MigrationError |
||
| 8 | { |
||
| 9 | use SerializesModels; |
||
| 10 | |||
| 11 | /** @var ElasticsearchMigration */ |
||
| 12 | private $migration; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * MigrationError constructor. |
||
| 16 | * @param ElasticsearchMigration $migration |
||
| 17 | */ |
||
| 18 | public function __construct(ElasticsearchMigration $migration) |
||
| 19 | { |
||
| 20 | $this->migration = $migration; |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @return ElasticsearchMigration |
||
| 25 | */ |
||
| 26 | public function getMigration(): ElasticsearchMigration |
||
| 27 | { |
||
| 28 | return $this->migration; |
||
| 29 | } |
||
| 31 |