NotImplementedException::__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 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
1
<?php
2
/**
3
 * Exception with 501 code
4
 *
5
 * https://tools.ietf.org/html/rfc7231#page-63
6
 *
7
 * @file      UserErrorHandler.php
8
 *
9
 * PHP version 8.0+
10
 *
11
 * @author    Yancharuk Alexander <alex at itvault dot info>
12
 * @copyright © 2012-2021 Alexander Yancharuk
13
 * @date      2015-08-11 21:44
14
 * @license   The BSD 3-Clause License
15
 *            <https://tldrlegal.com/license/bsd-3-clause-license-(revised)>
16
 */
17
18
namespace Veles\Exceptions\Http;
19
20
/**
21
 * Class   NotImplementedException
22
 *
23
 * @author Yancharuk Alexander <alex at itvault dot info>
24
 */
25
class NotImplementedException extends HttpResponseException
26
{
27
	protected $message = 'Not implemented';
28
29 1
	public function __construct()
30
	{
31 1
		parent::__construct();
32 1
		header('HTTP/1.1 501 Not Implemented', true, 501);
33
	}
34
}
35