IndexMapMatchFailedException   A
last analyzed

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