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

NonExistentValue   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 23
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getValue() 0 4 1
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