FileNotFoundException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 9
ccs 0
cts 8
cp 0
rs 9.6666
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Thruster\Component\Tokenizer\Exception;
4
5
use Exception;
6
use InvalidArgumentException;
7
8
/**
9
 * Class FileNotFoundException
10
 *
11
 * @package Thruster\Component\Tokenizer\Exception
12
 * @author  Aurimas Niekis <[email protected]>
13
 */
14
class FileNotFoundException extends InvalidArgumentException
15
{
16
    /**
17
     * @inheritDoc
18
     */
19
    public function __construct(string $file)
20
    {
21
        $message = sprintf(
22
            'File "%s" not found!',
23
            $file
24
        );
25
26
        parent::__construct($message);
27
    }
28
}