FileNotFoundException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 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