1 | <?php |
||
5 | class Type implements Constraint |
||
6 | { |
||
7 | // TODO deprecate in favour of JsonSchema::<TYPE> ? |
||
8 | const OBJECT = 'object'; |
||
9 | const STRING = 'string'; |
||
10 | const INTEGER = 'integer'; |
||
11 | const NUMBER = 'number'; |
||
12 | const ARR = 'array'; |
||
13 | const BOOLEAN = 'boolean'; |
||
14 | const NULL = 'null'; |
||
15 | |||
16 | public static function readString($types, &$data) |
||
55 | |||
56 | public static function isValid($types, $data) |
||
92 | |||
93 | |||
94 | } |