| Conditions | 4 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function parseSchema() |
||
| 31 | { |
||
| 32 | if (!isset($this->schema['type'])) { |
||
| 33 | throw new Exceptions\NoTypeException(); |
||
| 34 | } |
||
| 35 | |||
| 36 | if (!in_array($this->schema['type'], $this->validTypes)) { |
||
| 37 | throw new Exceptions\InvalidTypeException(); |
||
| 38 | } |
||
| 39 | |||
| 40 | if (!isset($this->schema['properties'])) { |
||
| 41 | throw new Exceptions\NoPropertiesException(); |
||
| 42 | } |
||
| 43 | } |
||
| 44 | } |
||
| 45 |