Passed
Branch v1.5.1 (9f4477)
by Wanderson
01:49
created

HttpException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
3
namespace Win;
4
5
use Exception;
6
7
/**
8
 * Erro Http
9
 * 403, 404, 500, etc
10
 */
11
class HttpException extends Exception
12
{
13
	public function __construct($message, $code)
14
	{
15
		http_response_code($code);
16
		parent::__construct($message, $code);
17
	}
18
}
19