Completed
Push — master ( 530e5d...e2eae8 )
by Andreas
17:20
created

midcom_services_rcs_backend_null   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Test Coverage

Coverage 16.66%

Importance

Changes 0
Metric Value
eloc 6
c 0
b 0
f 0
dl 0
loc 29
ccs 2
cts 12
cp 0.1666
rs 10
wmc 6

6 Methods

Rating   Name   Duplication   Size   Complexity  
A update() 0 3 1
A get_revision() 0 3 1
A __construct() 0 2 1
A get_history() 0 3 1
A restore_to_revision() 0 3 1
A get_diff() 0 3 1
1
<?php
2
/**
3
 * @author tarjei huse
4
 * @package midcom.services.rcs
5
 * @copyright The Midgard Project, http://www.midgard-project.org
6
 * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License
7
 */
8
9
/**
10
 * @package midcom.services.rcs
11
 */
12
class midcom_services_rcs_backend_null implements midcom_services_rcs_backend
13
{
14 1
    public function __construct($object, midcom_services_rcs_config $config)
15
    {
16 1
    }
17
18
    public function update($object, $updatemessage = null) : bool
19
    {
20
        return true;
21
    }
22
23
    public function get_revision($revision) : array
24
    {
25
        return [];
26
    }
27
28
    public function get_history() : ?midcom_services_rcs_history
29
    {
30
        return null;
31
    }
32
33
    public function get_diff($oldest_revision, $latest_revision) : array
34
    {
35
        return [];
36
    }
37
38
    public function restore_to_revision($revision) : bool
39
    {
40
        return false;
41
    }
42
}
43