Passed
Push — master ( 3a32e2...77143f )
by Edward
04:21
created

ParentNotFoundException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 9
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Remorhaz\JSON\Pointer\Query\Exception;
5
6
use LogicException;
7
use Throwable;
8
9
final class ParentNotFoundException extends LogicException implements ExceptionInterface
10
{
11
12
    private $source;
13
14
    public function __construct(string $source, Throwable $previous = null)
15
    {
16
        $this->source = $source;
17
        parent::__construct("Query '{$this->source}' selected no parent node", 0, $previous);
18
    }
19
}
20