PathNotFoundException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 9
ccs 6
cts 6
cp 1
rs 10
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Compolomus\FSHelper\Exceptions;
6
7
use RuntimeException;
8
9
class PathNotFoundException extends RuntimeException
10
{
11 2
    public function __construct(string $message = '')
12
    {
13 2
        $notice = 'Provided path does not exists';
14 2
        parent::__construct(
15 2
            !empty($message)
16 2
                ? $notice . ': ' . $message
17 2
                : $notice
18
        );
19 2
    }
20
}
21