FileNotFoundException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1
crap 1
1
<?php
2
/**
3
 * Spiral Framework.
4
 *
5
 * @license   MIT
6
 * @author    Anton Titov (Wolfy-J)
7
 */
8
9
namespace Spiral\Files\Exceptions;
10
11
/**
12
 * When trying to read missing file.
13
 */
14
class FileNotFoundException extends FilesException
15
{
16
    /**
17
     * @param string $filename
18
     */
19 7
    public function __construct($filename)
20
    {
21 7
        parent::__construct("File '{$filename}' not found");
22 7
    }
23
}
24