| 1 | <?php |
||
| 10 | class Json implements Modifier |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Determine if this value is json (array or object) |
||
| 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 json |
||
| 25 | * @param string $value |
||
| 26 | * @return boolean |
||
| 27 | */ |
||
| 28 | public function canHandleTo($value) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Convert the string into the json object/array |
||
| 35 | * |
||
| 36 | * @param string|array $value |
||
| 37 | * @return mixed |
||
| 38 | */ |
||
| 39 | public function convertTo($value) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Convert the complex object back to a string |
||
| 46 | * |
||
| 47 | * @param mixed $value |
||
| 48 | * @return string |
||
| 49 | */ |
||
| 50 | public function convertFrom($value) |
||
| 54 | } |
||
| 55 |