Пример #1
0
 public function setJsonResponse(Json $json)
 {
     if ($this->error) {
         $json->setError($this->error, $this->statusCode);
     }
     $this->response = $json->__toString();
 }