| Total Complexity | 3 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 37.5% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | abstract class BoltAbstractAction extends AbstractAction |
||
| 19 | { |
||
| 20 | public const SETTER_INJECTOR = SetterInjector::class; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Injector for ResponseFactory |
||
| 24 | * |
||
| 25 | * @param ResponseFactoryInterface $responseFactory The ResponseFactory. |
||
| 26 | * @return $this |
||
| 27 | */ |
||
| 28 | 1 | public function injectResponseFactory(ResponseFactoryInterface $responseFactory): BoltAbstractAction |
|
| 29 | { |
||
| 30 | 1 | $this->responseFactory = $responseFactory; |
|
| 31 | |||
| 32 | 1 | return $this; |
|
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @deprecated |
||
| 37 | */ |
||
| 38 | protected function events(): EventsHub |
||
| 42 | } |
||
| 43 | |||
| 44 | protected function context(): RequestContext |
||
| 49 |