Passed
Push — master ( 7fa044...a851a0 )
by compolom
03:30 queued 02:09
created

PathNotFoundException::__construct()   A

Complexity

Conditions 2
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 6
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 5
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 7
ccs 6
cts 6
cp 1
crap 2
rs 10
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