public function setJsonResponse(Json $json) { if ($this->error) { $json->setError($this->error, $this->statusCode); } $this->response = $json->__toString(); }
public function setJsonResponse(Json $json) { if ($this->error) { $json->setError($this->error, $this->statusCode); } $this->response = $json->__toString(); }