NonExistingValueResult   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 21
ccs 8
cts 8
cp 1
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A exists() 0 3 1
A get() 0 3 1
A encode() 0 3 1
A decode() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Remorhaz\JSON\Path\Processor\Result;
6
7
use Remorhaz\JSON\Data\Value\ValueInterface;
8
9
final class NonExistingValueResult implements ValueResultInterface
10
{
11
12 1
    public function exists(): bool
13
    {
14 1
        return false;
15
    }
16
17 1
    public function encode(): string
18
    {
19 1
        throw new Exception\SelectedValueNotFoundException();
20
    }
21
22 1
    public function decode()
23
    {
24 1
        throw new Exception\SelectedValueNotFoundException();
25
    }
26
27 1
    public function get(): ValueInterface
28
    {
29 1
        throw new Exception\SelectedValueNotFoundException();
30
    }
31
}
32