FileNotFoundException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Hexako\Exception;
4
5
/**
6
 * Class FileNotFoundException
7
 * @package Hexako\Exception
8
 */
9
class FileNotFoundException extends \Exception
10
{
11
    /**
12
     * FileNotFoundException constructor.
13
     */
14 1
    public function __construct()
15
    {
16 1
        $message = "File not found";
17 1
        $code = 404;
18 1
        parent::__construct($message, $code);
19 1
    }
20
}
21