Completed
Push — master ( 413e31...6028d7 )
by Changwan
06:35
created

CannotGetPathException   A

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 2
    public function __construct(array $attributeKeys = [])
12
    {
13 2
        $this->attributeKeys = $attributeKeys;
14 2
        $keys = implode(', ', $attributeKeys);
15 2
        $this->message = "cannot get path, at least {$keys} is required.";
16 2
    }
17
}
18