Completed
Push — master ( cecf8d...9b16a2 )
by Matt
11s
created

NonExistentValue::getPointer()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 0
cts 0
cp 0
crap 2
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace League\JsonReference\Pointer;
4
5
/**
6
 * Represents a value referenced by a pointer that does not exist in the JSON data.
7
 */
8
final class NonExistentValue
9
{
10
    /**
11
     * @var string
12
     */
13
    private $value;
14
    /**
15
     * @var string
16
     */
17
    private $pointer;
18 10
19
    /**
20 10
     * @param string $value The referenced value.
21 10
     * @param string $pointer The full pointer which contains the invalid value.
22
     */
23
    public function __construct($value, $pointer)
24
    {
25
        $this->value = $value;
26 6
        $this->pointer = $pointer;
27
    }
28 6
29
    /**
30
     * @return string
31
     */
32
    public function getValue()
33
    {
34
        return $this->value;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getPointer()
41
    {
42
        return $this->pointer;
43
    }
44
}
45