Total Complexity | 28 |
Total Lines | 89 |
Duplicated Lines | 0 % |
Coverage | 50.79% |
Changes | 0 |
1 | <?php |
||
7 | class Type implements Constraint |
||
8 | { |
||
9 | // TODO deprecate in favour of JsonSchema::<TYPE> ? |
||
10 | const OBJECT = 'object'; |
||
11 | const STRING = 'string'; |
||
12 | const INTEGER = 'integer'; |
||
13 | const NUMBER = 'number'; |
||
14 | const ARR = 'array'; |
||
15 | const BOOLEAN = 'boolean'; |
||
16 | const NULL = 'null'; |
||
17 | |||
18 | public static function readString($types, &$data) |
||
56 | } |
||
57 | |||
58 | 3257 | public static function isValid($types, $data, $version) |
|
99 | } |