Completed
Pull Request — master (#2)
by René
16:36 queued 06:34
created

NotFoundController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
c 3
b 0
f 0
lcom 0
cbo 1
dl 0
loc 12
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 4 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace Zortje\MVC\Controller;
5
6
// @todo custom, should not be in this repo
7
8
/**
9
 * Class NotFoundController
10
 *
11
 * @package Zortje\MVC\Controller
12
 */
13
class NotFoundController extends Controller
14
{
15
16
    protected $access = [
17
        'index' => Controller::ACTION_PUBLIC
18
    ];
19
20
    protected function index()
21
    {
22
        $this->setResponseCode(404);
23
    }
24
}
25