ProtectedReferenceException   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getHeaders() 0 2 1
A __construct() 0 2 1
A getStatusCode() 0 2 1
1
<?php
2
3
/*
4
 * This file is part of the OneGuard DynamicConfigurationBundle.
5
 *
6
 * (c) OneGuard <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace OneGuard\Bundle\DynamicConfigurationBundle\Exception;
13
14
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
15
16
class ProtectedReferenceException extends \Exception implements HttpExceptionInterface {
17
	public function __construct($message = "", $code = 0, \Throwable $previous = null) {
18
		parent::__construct($message, $code, $previous);
19
	}
20
21
	public function getStatusCode() {
22
		return 400;
23
	}
24
25
	public function getHeaders() {
26
		return [];
27
	}
28
}
29