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

HttpException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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