Completed
Push — master ( 4964c5...ed9627 )
by Matt
10s
created

NonExistentValue::getValue()   A

Complexity

Conditions 1
Paths 1

Duplication

Lines 0
Ratio 0 %

Size

Total Lines 4
Code Lines 2

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
c 0
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
    /**
16
     * @param string $value The referenced value.
17
     */
18 10
    public function __construct($value)
19
    {
20 10
        $this->value = $value;
21 10
    }
22
23
    /**
24
     * @return string
25
     */
26 6
    public function getValue()
27
    {
28 6
        return $this->value;
29
    }
30
}
31