| 1 | <?php |
||
| 18 | class Between |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * |
||
| 22 | * If the value is less than min, will set the min value, |
||
| 23 | * and if value is greater than max, set the max value. |
||
| 24 | * |
||
| 25 | * @param object $subject The subject to be filtered. |
||
| 26 | * |
||
| 27 | * @param string $field The subject field name. |
||
| 28 | * |
||
| 29 | * @param mixed $min The minimum valid value. |
||
| 30 | * |
||
| 31 | * @param mixed $max The maximum valid value. |
||
| 32 | * |
||
| 33 | * @return bool True if the value was sanitized, false if not. |
||
| 34 | * |
||
| 35 | */ |
||
| 36 | 8 | public function __invoke($subject, $field, $min, $max) |
|
| 50 | } |
||
| 51 |