Completed
Push — rework ( d09de3...810325 )
by Markus
03:02
created

NotFoundHandler   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 14
rs 10
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A handle() 0 6 1
1
<?php
2
3
namespace SSpkS\Handler;
4
5
class NotFoundHandler implements HandlerInterface
6
{
7
8
    public function __construct(\SSpkS\Config $config)
9
    {
10
    }
11
12
    public function handle()
13
    {
14
        header('Content-type: text/html');
15
        header('HTTP/1.1 404 Not Found');
16
        header('Status: 404 Not Found');
17
    }
18
}
19