Completed
Push — master ( d63249...f2b5fd )
by Changwan
02:39
created

CannotLoadException::getPath()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 4
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Wandu\Config\Exception;
3
4
use RuntimeException;
5
6
class CannotLoadException extends RuntimeException
7
{
8
    /** @var string */
9
    protected $path;
10
11
    /**
12
     * @param string $path
13
     */
14
    public function __construct(string $path)
15
    {
16
        $this->path = $path;
17
        $message = "cannot load {$path}";
18
        parent::__construct($message);
19
    }
20
21
    /**
22
     * @return string
23
     */
24
    public function getPath(): string
25
    {
26
        return $this->path;
27
    }
28
}
29