| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 16 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 2 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 74 | protected function setResponse(string $classname, string $action): Restful | ||
| 75 |     { | ||
| 76 | $this->response | ||
| 77 | ->setCode(Response::HTTP_OK) | ||
| 78 | ->setContent( | ||
| 79 | [ | ||
| 80 | 'error' => false, | ||
| 81 | 'datas' => [ | ||
| 82 | 'method' => $this->request->getMethod(), | ||
| 83 | 'params' => $this->request->getParams(), | ||
| 84 | 'controller' => $classname, | ||
| 85 | 'action' => $action, | ||
| 86 | ] | ||
| 87 | ] | ||
| 88 | ); | ||
| 89 | return $this; | ||
| 90 | } | ||
| 92 |