| Total Complexity | 8 |
| Total Lines | 60 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class MigratorConfiguration |
||
| 8 | { |
||
| 9 | /** @var bool */ |
||
| 10 | private $dryRun = false; |
||
| 11 | |||
| 12 | /** @var bool */ |
||
| 13 | private $timeAllQueries = false; |
||
| 14 | |||
| 15 | /** @var bool */ |
||
| 16 | private $noMigrationException = false; |
||
| 17 | |||
| 18 | /** @var bool */ |
||
| 19 | private $allOrNothing = false; |
||
| 20 | |||
| 21 | 60 | public function isDryRun() : bool |
|
| 22 | { |
||
| 23 | 60 | return $this->dryRun; |
|
| 24 | } |
||
| 25 | |||
| 26 | 28 | public function setDryRun(bool $dryRun) : self |
|
| 27 | { |
||
| 28 | 28 | $this->dryRun = $dryRun; |
|
| 29 | |||
| 30 | 28 | return $this; |
|
| 31 | } |
||
| 32 | |||
| 33 | 24 | public function getTimeAllQueries() : bool |
|
| 36 | } |
||
| 37 | |||
| 38 | 7 | public function setTimeAllQueries(bool $timeAllQueries) : self |
|
| 43 | } |
||
| 44 | |||
| 45 | 3 | public function getNoMigrationException() : bool |
|
| 48 | } |
||
| 49 | |||
| 50 | 5 | public function setNoMigrationException(bool $noMigrationException = false) : self |
|
| 51 | { |
||
| 52 | 5 | $this->noMigrationException = $noMigrationException; |
|
| 53 | |||
| 54 | 5 | return $this; |
|
| 55 | } |
||
| 56 | |||
| 57 | 28 | public function isAllOrNothing() : bool |
|
| 58 | { |
||
| 59 | 28 | return $this->allOrNothing; |
|
| 60 | } |
||
| 61 | |||
| 62 | 6 | public function setAllOrNothing(bool $allOrNothing) : self |
|
| 67 | } |
||
| 68 | } |
||
| 69 |