Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
AngelTypesController
100.00% covered (success)
100.00%
6 / 6
100.00% covered (success)
100.00%
2 / 2
2
100.00% covered (success)
100.00%
1 / 1
 __construct
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
 about
100.00% covered (success)
100.00%
5 / 5
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Engelsystem\Controllers;
6
7use Engelsystem\Http\Response;
8use Engelsystem\Models\AngelType;
9
10class AngelTypesController extends BaseController
11{
12    public function __construct(protected Response $response)
13    {
14    }
15
16    public function about(): Response
17    {
18        $angeltypes = AngelType::all();
19
20        return $this->response->withView(
21            'pages/angeltypes/about',
22            ['angeltypes' => $angeltypes]
23        );
24    }
25}