| Total Complexity | 3 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 80% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | abstract class AbstractController extends AbstractWithLocator |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var \Xervice\Controller\Business\Provider\KernelBridgeInterface |
||
| 17 | */ |
||
| 18 | private $kernel; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param \Xervice\Controller\Business\Provider\KernelBridgeInterface $kernel |
||
| 22 | */ |
||
| 23 | 5 | public function setKernel(KernelBridgeInterface $kernel): void |
|
| 24 | { |
||
| 25 | 5 | $this->kernel = $kernel; |
|
| 26 | 5 | } |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @param string $serviceName |
||
| 30 | * |
||
| 31 | * @return \Xervice\Kernel\Business\Service\ServiceInterface |
||
| 32 | */ |
||
| 33 | protected function getService(string $serviceName): ServiceInterface |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $content |
||
| 40 | * @param int $status |
||
| 41 | * @param array $header |
||
| 42 | * |
||
| 43 | * @return \Symfony\Component\HttpFoundation\Response |
||
| 44 | * @throws \InvalidArgumentException |
||
| 45 | */ |
||
| 46 | 4 | protected function sendResponse( |
|
| 56 | ); |
||
| 57 | } |
||
| 58 | } |