Total Complexity | 5 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 69.23% |
Changes | 0 |
1 | <?php |
||
11 | class MigrationsEventArgs extends EventArgs |
||
12 | { |
||
13 | /** @var Configuration */ |
||
14 | private $config; |
||
15 | |||
16 | /** @var string */ |
||
17 | private $direction; |
||
18 | |||
19 | /** @var bool */ |
||
20 | private $dryRun; |
||
21 | |||
22 | 54 | public function __construct(Configuration $config, string $direction, bool $dryRun) |
|
23 | { |
||
24 | 54 | $this->config = $config; |
|
25 | 54 | $this->direction = $direction; |
|
26 | 54 | $this->dryRun = $dryRun; |
|
27 | 54 | } |
|
28 | |||
29 | public function getConfiguration() : Configuration |
||
32 | } |
||
33 | |||
34 | 4 | public function getConnection() : Connection |
|
35 | { |
||
36 | 4 | return $this->config->getConnection(); |
|
37 | } |
||
38 | |||
39 | public function getDirection() : string |
||
42 | } |
||
43 | |||
44 | 4 | public function isDryRun() : bool |
|
47 | } |
||
48 | } |
||
49 |