1 | <?php |
||
18 | class Max |
||
19 | { |
||
20 | /** |
||
21 | * |
||
22 | * Validates that the value is less than than or equal to a maximum. |
||
23 | * |
||
24 | * @param object $subject The subject to be filtered. |
||
25 | * |
||
26 | * @param string $field The subject field name. |
||
27 | * |
||
28 | * @param mixed $max The maximum valid value. |
||
29 | * |
||
30 | * @return bool True if valid, false if not. |
||
31 | * |
||
32 | */ |
||
33 | 7 | public function __invoke($subject, $field, $max) |
|
42 | } |
||
43 |