Passed
Push — master ( 9e63b9...2051c8 )
by Edward
05:00
created

IndexMapMatchFailedException   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getRightValues() 0 3 1
A __construct() 0 8 1
A getLeftValues() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Remorhaz\JSON\Path\Runtime\Exception;
5
6
use LogicException;
7
use Remorhaz\JSON\Path\Value\ValueListInterface;
8
use Throwable;
9
10
final class IndexMapMatchFailedException extends LogicException implements ExceptionInterface
11
{
12
13
    private $leftValues;
14
15
    private $rightValues;
16
17 6
    public function __construct(
18
        ValueListInterface $leftValues,
19
        ValueListInterface $rightValues,
20
        Throwable $previous = null
21
    ) {
22 6
        $this->leftValues = $leftValues;
23 6
        $this->rightValues = $rightValues;
24 6
        parent::__construct("Index map match failed", 0, $previous);
25 6
    }
26
27 1
    public function getLeftValues(): ValueListInterface
28
    {
29 1
        return $this->leftValues;
30
    }
31
32 1
    public function getRightValues(): ValueListInterface
33
    {
34 1
        return $this->rightValues;
35
    }
36
}
37