Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
1 / 1 |
| HealthController | |
100.00% |
2 / 2 |
|
100.00% |
2 / 2 |
2 | |
100.00% |
1 / 1 |
| __construct | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| index | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Engelsystem\Controllers; |
| 6 | |
| 7 | use Engelsystem\Http\Response; |
| 8 | |
| 9 | class HealthController extends BaseController |
| 10 | { |
| 11 | public function __construct(protected Response $response) |
| 12 | { |
| 13 | } |
| 14 | |
| 15 | public function index(): Response |
| 16 | { |
| 17 | return $this->response->withContent('Ok'); |
| 18 | } |
| 19 | } |