Total Complexity | 2 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
12 | final class CodeFinderConfiguration |
||
13 | { |
||
14 | private readonly bool $recursive; |
||
|
|||
15 | |||
16 | /** @param mixed[] $options */ |
||
17 | 30 | public function __construct(array $options) |
|
18 | { |
||
19 | 30 | Assert::boolean($options['recursive'], 'Recursive option must be a boolean value'); |
|
20 | 29 | $this->recursive = $options['recursive']; |
|
21 | } |
||
22 | |||
23 | 29 | public function recursive(): bool |
|
24 | { |
||
25 | 29 | return $this->recursive; |
|
26 | } |
||
28 |