Total Complexity | 4 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class CheckWrapper implements CheckWrapperInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var CheckInterface |
||
14 | */ |
||
15 | protected CheckInterface $check; |
||
16 | /** |
||
17 | * @var bool |
||
18 | */ |
||
19 | protected bool $isInterrupting; |
||
20 | |||
21 | /** |
||
22 | * @param CheckInterface $check |
||
23 | * @param bool $isInterrupting |
||
24 | */ |
||
25 | 304 | public function __construct(CheckInterface $check, bool $isInterrupting) |
|
26 | { |
||
27 | 304 | $this->check = $check; |
|
28 | 304 | $this->isInterrupting = $isInterrupting; |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * {@inheritDoc} |
||
33 | */ |
||
34 | 295 | public function getCheck(): CheckInterface |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * {@inheritDoc} |
||
41 | */ |
||
42 | 164 | public function isInterrupting(): bool |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * {@inheritDoc} |
||
49 | */ |
||
50 | 6 | public function setInterrupting(bool $value = true): void |
|
55 |