NotFoundException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 3
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * Exception for non founded routes
4
 *
5
 * @file      NotFoundException.php
6
 *
7
 * PHP version 8.0+
8
 *
9
 * @author    Yancharuk Alexander <alex at itvault dot info>
10
 * @copyright © 2012-2021 Alexander Yancharuk
11
 * @date      2015-08-12 07:01
12
 * @license   The BSD 3-Clause License
13
 *            <https://tldrlegal.com/license/bsd-3-clause-license-(revised)>
14
 */
15
16
namespace Veles\Routing\Exceptions;
17
18
/**
19
 * Class NotFoundException
20
 * @author  Yancharuk Alexander <alex at itvault dot info>
21
 */
22
class NotFoundException extends \DomainException
23
{
24 3
	public function __construct()
25
	{
26 3
		parent::__construct();
27 3
		header('HTTP/1.1 404 Not Found', true, 404);
28
	}
29
}
30