| Total Complexity | 3 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | abstract class AbstractAction extends AbstractHandler |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var ResponseFactoryInterface |
||
| 21 | */ |
||
| 22 | protected $responseFactory; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Halt execution and return the given response. |
||
| 26 | * |
||
| 27 | * @param ResponseInterface $response The response to be thrown. |
||
| 28 | * @throws ThrowableResponse Throws a standard exception containing given response. |
||
| 29 | * @return void |
||
| 30 | */ |
||
| 31 | protected static function throwResponse(ResponseInterface $response): void |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param ViewInterface $view The view instance to be used with this action. |
||
| 38 | * @return ViewInterface |
||
| 39 | */ |
||
| 40 | protected function attachView(ViewInterface $view) |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return JsonView |
||
| 49 | */ |
||
| 50 | protected function json(): JsonView |
||
| 57 |