Conditions | 3 |
Paths | 4 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
57 | 64 | public function execute($value, array $previousErrors): void |
|
58 | { |
||
59 | 64 | foreach ($this->dependsOnChecks as $check) { |
|
60 | 10 | $check->execute($value, $previousErrors); |
|
61 | } |
||
62 | |||
63 | 64 | if (($this->predicate)($value, ...array_values($this->params)) === false) { |
|
64 | 39 | throw new CheckError($this->errorName, $value, $this->params); |
|
65 | } |
||
68 |