1 | <?php |
||
14 | final class ArrayAdapter implements ValidatorInterface |
||
15 | { |
||
16 | /** @var ValidatorInterface */ |
||
17 | private $validator; |
||
18 | |||
19 | /** @var bool */ |
||
20 | private $strictUniqueControl = true; |
||
21 | |||
22 | /** |
||
23 | * ArrayAdapter constructor. |
||
24 | * |
||
25 | * @param ValidatorInterface $validator |
||
26 | */ |
||
27 | 8 | public function __construct(ValidatorInterface $validator) |
|
31 | |||
32 | /** |
||
33 | * @param mixed $value |
||
34 | * |
||
35 | * @return bool |
||
36 | */ |
||
37 | 8 | public function validate($value): bool |
|
55 | |||
56 | /** |
||
57 | * @return bool |
||
58 | */ |
||
59 | 8 | public function isStrictUniqueControl(): bool |
|
63 | |||
64 | /** |
||
65 | * @param bool $strictUniqueControl |
||
66 | */ |
||
67 | public function setStrictUniqueControl(bool $strictUniqueControl): void |
||
71 | } |
||
72 |