Passed
Push — master ( e819cb...ec2698 )
by Andreas
24:03
created

transientnode   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 22
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A get_value() 0 3 1
A set_value() 0 3 1
A save() 0 2 1
1
<?php
2
/**
3
 * @copyright CONTENT CONTROL GmbH, http://www.contentcontrol-berlin.de
4
 */
5
6
namespace midcom\datamanager\storage;
7
8
/**
9
 * Experimental storage class
10
 */
11
class transientnode implements node
12
{
13
    private $value;
14
15
    /**
16
     * {@inheritdoc}
17
     */
18 17
    public function get_value()
19
    {
20 17
        return $this->value;
21
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26 10
    public function set_value($value)
27
    {
28 10
        $this->value = $value;
29 10
    }
30
31 3
    public function save()
32
    {
33 3
    }
34
}
35