public function __construct($result, $error) { parent::__construct(array('data' => array('result' => $result, 'error' => $error))); }
/** * @param array $validationError * @param array|null $status */ public function __construct(array $validationError, array $status = null) { parent::__construct(array('result' => false, 'error' => $validationError, 'entity' => null, 'list' => null), $status ?: array('HTTP/1.1 400 Bad Request')); }