FileNotFoundException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 4
cts 6
cp 0.6667
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

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