1 | <?php |
||
18 | class EqualToField |
||
19 | { |
||
20 | /** |
||
21 | * |
||
22 | * Validates that this value is loosely equal to some other subject field. |
||
23 | * |
||
24 | * If the other element does not exist in $subject, or is null, the |
||
25 | * validation will fail. |
||
26 | * |
||
27 | * @param object $subject The subject to be filtered. |
||
28 | * |
||
29 | * @param string $field The subject field name. |
||
30 | * |
||
31 | * @param string $other_field Check against the value of this subject field. |
||
32 | * |
||
33 | * @return bool True if the values are equal, false if not equal. |
||
34 | * |
||
35 | */ |
||
36 | 7 | public function __invoke($subject, $field, $other_field) |
|
45 | } |
||
46 |