| 1 | <?php |
||
| 20 | class StrlenBetween extends AbstractStrlen |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * |
||
| 24 | * Validates that the length of the value is within a given range. |
||
| 25 | * |
||
| 26 | * @param object $subject The subject to be filtered. |
||
| 27 | * |
||
| 28 | * @param string $field The subject field name. |
||
| 29 | * |
||
| 30 | * @param mixed $min The minimum valid length. |
||
| 31 | * |
||
| 32 | * @param mixed $max The maximum valid length. |
||
| 33 | * |
||
| 34 | * @return bool True if valid, false if not. |
||
| 35 | * |
||
| 36 | */ |
||
| 37 | 11 | public function __invoke($subject, $field, $min, $max) |
|
| 47 | } |
||
| 48 |