FileNotFoundException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 4
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace BPCI\SumUp\Exception;
4
5
class FileNotFoundException extends \RuntimeException{
6
    private $path;
7 1
    public function __construct(string $message, int $code = 0, \Exception $previous = null, string $path = null)
8
    {
9 1
        $this->path = $path;
10 1
        parent::__construct($message, $code, $previous);
11 1
    }
12
    /**
13
     * @inheritdoc
14
     */
15
    public function getPath()
16
    {
17
        return $this->path;
18
    } 
19
}