| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 57 | 408 | public function execute(array $operations): void |
|
| 58 | { |
||
| 59 | 408 | foreach ($operations as $operation) { |
|
| 60 | 408 | if (!$operation instanceof OperationInterface) { |
|
| 61 | 8 | throw new CapsuleException( |
|
| 62 | 8 | sprintf( |
|
| 63 | 'Migration operation expected to be an instance of `OperationInterface`, `%s` given', |
||
| 64 | $operation::class |
||
| 65 | ) |
||
| 66 | ); |
||
| 67 | } |
||
| 68 | |||
| 69 | 400 | $operation->execute($this); |
|
| 70 | } |
||
| 73 |