| Conditions | 4 |
| Paths | 8 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | 13 | public function getMigratorConfiguration(InputInterface $input) : MigratorConfiguration |
|
| 22 | { |
||
| 23 | 13 | $timeAllQueries = $input->hasOption('query-time') ? (bool) $input->getOption('query-time') : false; |
|
| 24 | 13 | $dryRun = $input->hasOption('dry-run') ? (bool) $input->getOption('dry-run') : false; |
|
| 25 | 13 | $allOrNothing = $input->hasOption('all-or-nothing') ? (bool) $input->getOption('all-or-nothing') : $this->configuration->isAllOrNothing(); |
|
| 26 | |||
| 27 | 13 | return (new MigratorConfiguration()) |
|
| 28 | 13 | ->setDryRun($dryRun) |
|
| 29 | 13 | ->setTimeAllQueries($timeAllQueries) |
|
| 30 | 13 | ->setAllOrNothing($allOrNothing); |
|
| 31 | } |
||
| 33 |