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

CannotLoadException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 23
ccs 0
cts 10
cp 0
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

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