1 | <?php |
||
18 | class Callback |
||
19 | { |
||
20 | /** |
||
21 | * |
||
22 | * Sanitizes a value using a callable/callback. |
||
23 | * |
||
24 | * @param object $subject The subject to be filtered. |
||
25 | * |
||
26 | * @param string $field The subject field name. |
||
27 | * |
||
28 | * @param callable $callable A callable/callback. |
||
29 | * |
||
30 | * @return bool True if the value was sanitized, false if not. |
||
31 | * |
||
32 | */ |
||
33 | 2 | public function __invoke($subject, $field, callable $callable) |
|
37 | } |
||
38 |