GenericHolder::getValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * Created by gerk on 21.11.17 06:34
4
 */
5
6
namespace PeekAndPoke\Types;
7
8
/**
9
 * @author Karsten J. Gerber <[email protected]>
10
 */
11
class GenericHolder implements ValueHolder
12
{
13
    /** @var mixed  */
14
    private $value;
15
16
    /**
17
     * @param mixed $value
18
     */
19 5
    public function __construct($value)
20
    {
21 5
        $this->value = $value;
22 5
    }
23
24
    /**
25
     * @return mixed
26
     */
27 5
    public function getValue()
28
    {
29 5
        return $this->value;
30
    }
31
}
32