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