1 | <?php |
||
8 | class JsonType implements TypeInterface |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * Filter a value to be a Json |
||
13 | * |
||
14 | * @param string $value |
||
15 | * @param null $annotation Unused |
||
16 | * @throws \Minime\Annotations\ParserException |
||
17 | * @return mixed |
||
18 | */ |
||
19 | public function parse($value, $annotation = null) |
||
28 | |||
29 | /** |
||
30 | * Wrapper fo json_decode function that keeps parser portable |
||
31 | * between json-ext and pecl-json-c extensions |
||
32 | * |
||
33 | * @param string $value json string |
||
34 | * @return mixed |
||
35 | */ |
||
36 | public static function jsonDecode($value) |
||
46 | |||
47 | } |
||
48 |