Completed
Push — master ( 947a8d...69b240 )
by Karsten
01:18
created

GenericHolder   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

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