Completed
Pull Request — master (#4)
by Matt
02:12
created

NonExistentValue::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

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
final class NonExistentValue
6
{
7
    /**
8
     * @var string
9
     */
10
    private $value;
11
12
    /**
13
     * @param string $value
14
     */
15 10
    public function __construct($value)
16
    {
17 10
        $this->value = $value;
18 10
    }
19
20
    /**
21
     * @return string
22
     */
23 6
    public function getValue()
24
    {
25 6
        return $this->value;
26
    }
27
}
28