1 | <?php |
||
10 | class Boolean implements Modifier |
||
11 | { |
||
12 | /** |
||
13 | * Determine if this value is boolean |
||
14 | * |
||
15 | * @param string $value |
||
16 | * @return boolean |
||
17 | */ |
||
18 | public function canHandleFrom($value) |
||
22 | |||
23 | /** |
||
24 | * Determine if we can convert this string into a boolean |
||
25 | * @param string $value |
||
26 | * @return boolean |
||
27 | */ |
||
28 | public function canHandleTo($value) |
||
32 | |||
33 | /** |
||
34 | * Convert the string into the boolean |
||
35 | * |
||
36 | * @param string|array $value |
||
37 | * @return boolean |
||
38 | */ |
||
39 | public function convertTo($value) |
||
43 | |||
44 | /** |
||
45 | * Convert the complex object back to a string |
||
46 | * |
||
47 | * @param bool $value |
||
48 | * @return string |
||
49 | */ |
||
50 | public function convertFrom($value) |
||
54 | } |
||
55 |