| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | final class WrappedCheck implements CheckInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected string $name; |
||
| 16 | /** |
||
| 17 | * @var CheckInterface |
||
| 18 | */ |
||
| 19 | protected CheckInterface $check; |
||
| 20 | /** |
||
| 21 | * @var callable |
||
| 22 | */ |
||
| 23 | protected $errorHandler; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $name |
||
| 27 | * @param CheckInterface $check |
||
| 28 | * @param callable $errorHandler |
||
| 29 | */ |
||
| 30 | 2 | public function __construct(string $name, CheckInterface $check, callable $errorHandler) |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * {@inheritDoc} |
||
| 39 | */ |
||
| 40 | 2 | public function __invoke($value, array $previousErrors, bool $preventDuplicate = false): void |
|
| 49 |