1 | <?php |
||
18 | class Str |
||
19 | { |
||
20 | /** |
||
21 | * |
||
22 | * Validates that the value can be represented as a string. |
||
23 | * |
||
24 | * Essentially, this means any scalar value is valid (no arrays, objects, |
||
25 | * resources, etc). |
||
26 | * |
||
27 | * @param object $subject The subject to be filtered. |
||
28 | * |
||
29 | * @param string $field The subject field name. |
||
30 | * |
||
31 | * @return bool True if valid, false if not. |
||
32 | * |
||
33 | * @todo allow for __toString() implementations |
||
34 | * |
||
35 | */ |
||
36 | 8 | public function __invoke($subject, $field) |
|
40 | } |
||
41 |