| 1 | <?php |
||
| 20 | class StrlenMax extends AbstractStrlen |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * |
||
| 24 | * Validates that a value is no longer than a certain length. |
||
| 25 | * |
||
| 26 | * @param object $subject The subject to be filtered. |
||
| 27 | * |
||
| 28 | * @param string $field The subject field name. |
||
| 29 | * |
||
| 30 | * @param mixed $max The value must have no more than this many |
||
| 31 | * characters. |
||
| 32 | * |
||
| 33 | * @return bool True if valid, false if not. |
||
| 34 | * |
||
| 35 | */ |
||
| 36 | 11 | public function __invoke($subject, $field, $max) |
|
| 45 | } |
||
| 46 |