1 | <?php |
||
14 | class ValidRule extends StandardRule |
||
15 | { |
||
16 | protected $contentTypes = ['json']; |
||
17 | |||
18 | private $json_errors = array( |
||
19 | JSON_ERROR_NONE => 'No Error', |
||
20 | JSON_ERROR_DEPTH => 'Maximum stack depth exceeded', |
||
21 | JSON_ERROR_STATE_MISMATCH => 'Underflow or the modes mismatch', |
||
22 | JSON_ERROR_CTRL_CHAR => 'Unexpected control character found', |
||
23 | JSON_ERROR_SYNTAX => 'Syntax error, malformed JSON', |
||
24 | JSON_ERROR_UTF8 => 'Malformed UTF-8 characters, possibly incorrectly encoded', |
||
25 | ); |
||
26 | |||
27 | public function init() { |
||
30 | |||
31 | public function doValidation(ResponseInterface $response) |
||
38 | } |
||
39 |