Completed
Push — master ( f9dcdb...5d2770 )
by Enrico
02:49
created

NotFoundHttpException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 4
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
namespace uSILEX\Exception;
3
4
/**
5
 * @author Fabien Potencier <[email protected]>
6
 */
7
class NotFoundHttpException extends HttpException
8
{
9
    /**
10
     * @param string     $message  The internal exception message
11
     * @param \Exception $previous The previous exception
12
     * @param int        $code     The internal exception code
13
     * @param array      $headers
14
     */
15 2
    public function __construct(string $message = null, \Exception $previous = null, int $code = 0, array $headers = array())
16
    {
17 2
        parent::__construct(404, $message, $previous, $headers, $code);
18 2
    }
19
}
20