1 | <?php |
||
8 | class JsonType implements TypeInterface |
||
9 | { |
||
10 | /** |
||
11 | * @var TypeInterface |
||
12 | */ |
||
13 | private static $instance; |
||
14 | |||
15 | public static function getType() |
||
23 | |||
24 | /** |
||
25 | * Filter a value to be a Json |
||
26 | * |
||
27 | * @param string $value |
||
28 | * @param null $annotation Unused |
||
29 | * @throws \Minime\Annotations\ParserException |
||
30 | * @return mixed |
||
31 | */ |
||
32 | public function parse($value, $annotation = null) |
||
41 | |||
42 | /** |
||
43 | * Wrapper fo json_decode function that keeps parser portable |
||
44 | * between json-ext and pecl-json-c extensions |
||
45 | * |
||
46 | * @param string $value json string |
||
47 | * @return mixed |
||
48 | */ |
||
49 | public static function jsonDecode($value) |
||
59 | |||
60 | } |
||
61 |