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

CannotGetPathException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 4
nc 1
nop 1
dl 0
loc 6
ccs 5
cts 5
cp 1
crap 1
rs 9.4285
c 0
b 0
f 0
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