| Total Complexity | 6 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class ConfigurationStep |
||
| 12 | { |
||
| 13 | private $next; |
||
|
|
|||
| 14 | |||
| 15 | private $options; |
||
| 16 | |||
| 17 | private $service; |
||
| 18 | |||
| 19 | /** @var bool */ |
||
| 20 | private $enabled; |
||
| 21 | |||
| 22 | 9 | private function __construct(string $service, array $options, array $children, bool $enabled = true) |
|
| 23 | { |
||
| 24 | 9 | $this->service = $service; |
|
| 25 | 9 | $this->options = $options; |
|
| 26 | 9 | $this->children = array_map([ConfigurationStep::class, 'create'], $children); |
|
| 27 | 9 | $this->enabled = $enabled; |
|
| 28 | 9 | } |
|
| 29 | |||
| 30 | 9 | public static function create(array $config) |
|
| 33 | } |
||
| 34 | |||
| 35 | 7 | public function getOptions(): array |
|
| 36 | { |
||
| 37 | 7 | return $this->options; |
|
| 38 | } |
||
| 39 | |||
| 40 | 7 | public function getService(): string |
|
| 41 | { |
||
| 42 | 7 | return $this->service; |
|
| 43 | } |
||
| 44 | |||
| 45 | 4 | public function getChildren(): array |
|
| 48 | } |
||
| 49 | |||
| 50 | 7 | public function isEnabled() |
|
| 55 |