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