Conditions | 4 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
25 | public function run(Registry $registry): Registry |
||
26 | { |
||
27 | foreach ($registry as $entity) { |
||
28 | if (!$registry->hasTable($entity)) { |
||
29 | continue; |
||
30 | } |
||
31 | |||
32 | if (!$entity->getOptions()->has(self::OPT_SKIP)) { |
||
33 | $registry->getTableSchema($entity)->declareDropped(); |
||
34 | } |
||
35 | } |
||
36 | |||
37 | return $registry; |
||
38 | } |
||
39 | } |