NotFoundException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
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