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

NonExistentValue::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
ccs 3
cts 3
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