Total Complexity | 2 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | final class AttributeNotFoundException extends OutOfRangeException implements ExceptionInterface |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $name; |
||
17 | |||
18 | 5 | public function __construct(string $name, Throwable $previous = null) |
|
19 | { |
||
20 | 5 | $this->name = $name; |
|
21 | 5 | parent::__construct("Token attribute not found: {$name}", 0, $previous); |
|
22 | 5 | } |
|
23 | |||
24 | /** |
||
25 | * @return string |
||
26 | * @psalm-pure |
||
27 | */ |
||
28 | 1 | public function getName(): string |
|
31 | } |
||
32 | } |
||
33 |