CannotGetPathException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
1
<?php
2
namespace Wandu\Router\Exception;
3
4
use RuntimeException;
5
6
class CannotGetPathException extends RuntimeException
7
{
8
    /** @var array */
9
    protected  $attributeKeys;
10
    
11 1
    public function __construct(array $attributeKeys = [])
12
    {
13 1
        $this->attributeKeys = $attributeKeys;
14 1
        $keys = implode(', ', $attributeKeys);
15 1
        $this->message = "cannot get path, at least {$keys} is required.";
16 1
    }
17
}
18