Total Complexity | 7 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class JsonValidator implements ValidatorInterface |
||
11 | { |
||
12 | private $definitions = null; |
||
13 | private $schema = null; |
||
14 | private $schema_url = null; |
||
15 | |||
16 | public function setSchema($schema, $additionalProperties = array()) { |
||
17 | $this->schema = $schema; |
||
18 | if(isset($additionalProperties['definitions']) && isset($additionalProperties['schema_url'])){ |
||
19 | $this->definitions = $additionalProperties['definitions']; |
||
20 | $this->schema_url = $additionalProperties['schema_url']; |
||
21 | } |
||
22 | } |
||
23 | |||
24 | |||
25 | public function validate($msg) |
||
41 | } |
||
42 | } |
||
43 | |||
44 | public function getContentType() { |
||
48 |