Total Complexity | 8 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | class MigratorConfig |
||
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 |
|
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 |
|
34 | { |
||
35 | 24 | return $this->timeAllQueries; |
|
36 | } |
||
37 | |||
38 | 7 | public function setTimeAllQueries(bool $timeAllQueries) : self |
|
39 | { |
||
40 | 7 | $this->timeAllQueries = $timeAllQueries; |
|
41 | |||
42 | 7 | return $this; |
|
43 | } |
||
44 | |||
45 | 3 | public function getNoMigrationException() : bool |
|
46 | { |
||
47 | 3 | return $this->noMigrationException; |
|
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 |