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