Total Complexity | 5 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 77.78% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | final class EnvironmentExtension |
||
9 | { |
||
10 | private $runEnvironments; |
||
11 | |||
12 | 4 | public function __construct(array $runEnvironments) |
|
13 | { |
||
14 | 4 | if (empty($runEnvironments)) { |
|
15 | 1 | throw new \InvalidArgumentException('At least one environment must be configured.'); |
|
16 | } |
||
17 | |||
18 | 3 | $this->runEnvironments = $runEnvironments; |
|
19 | 3 | } |
|
20 | |||
21 | public function __toString(): string |
||
24 | } |
||
25 | |||
26 | 3 | public function getRunEnvironments(): array |
|
31 |