Total Complexity | 5 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
9 | final class RunnerOptions |
||
10 | { |
||
11 | /** |
||
12 | * @var Collection |
||
13 | */ |
||
14 | private $files; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $prefix; |
||
20 | |||
21 | /** |
||
22 | * @var bool |
||
23 | */ |
||
24 | private $skipEmpty; |
||
25 | |||
26 | /** |
||
27 | * @var bool |
||
28 | */ |
||
29 | private $dryRun; |
||
30 | |||
31 | 14 | public function __construct(iterable $files, string $prefix = '', bool $skipEmpty = false, bool $dryRun = false) |
|
32 | { |
||
33 | 14 | $this->files = collect($files); |
|
34 | 14 | $this->prefix = $prefix; |
|
35 | 14 | $this->skipEmpty = $skipEmpty; |
|
36 | 14 | $this->dryRun = $dryRun; |
|
37 | 14 | } |
|
38 | |||
39 | /** |
||
40 | * @return Collection |
||
41 | */ |
||
42 | 11 | public function getFiles(): Collection |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * @return string |
||
49 | */ |
||
50 | 11 | public function getPrefix(): string |
|
51 | { |
||
52 | 11 | return $this->prefix; |
|
53 | } |
||
54 | |||
55 | /** |
||
56 | * @return bool |
||
57 | */ |
||
58 | 11 | public function isSkipEmpty(): bool |
|
61 | } |
||
62 | |||
63 | /** |
||
64 | * @return bool |
||
65 | */ |
||
66 | 11 | public function isDryRun(): bool |
|
69 | } |
||
70 | } |
||
71 |