Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
8 / 8
100.00% covered (success)
100.00%
2 / 2
CRAP
100.00% covered (success)
100.00%
1 / 1
CreditsController
100.00% covered (success)
100.00%
8 / 8
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
 index
100.00% covered (success)
100.00%
7 / 7
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2
3declare(strict_types=1);
4
5namespace Engelsystem\Controllers;
6
7use Engelsystem\Config\Config;
8use Engelsystem\Helpers\Version;
9use Engelsystem\Http\Response;
10
11class CreditsController extends BaseController
12{
13    public function __construct(protected Response $response, protected Config $config, protected Version $version)
14    {
15    }
16
17    public function index(): Response
18    {
19        return $this->response->withView(
20            'pages/credits.twig',
21            [
22                'credits' => $this->config->get('credits'),
23                'version' => $this->version->getVersion(),
24            ]
25        );
26    }
27}