Total Complexity | 6 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | class IsSame extends ValidatorImpl |
||
17 | { |
||
18 | public const ERROR_NO_MATCH = "No value to compare. Use 'against' function."; |
||
19 | /** @var mixed */ |
||
20 | protected $against; |
||
21 | |||
22 | /** |
||
23 | * @param mixed $value |
||
24 | * @return $this |
||
25 | */ |
||
26 | public function against($value): IsSame |
||
31 | } |
||
32 | |||
33 | /** |
||
34 | * @param mixed $value |
||
35 | * @return bool |
||
36 | * @throws ValidationException |
||
37 | */ |
||
38 | public function check($value = null): bool |
||
54 |