NullRecord   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 74
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 11.11%

Importance

Changes 0
Metric Value
dl 0
loc 74
c 0
b 0
f 0
wmc 9
lcom 0
cbo 0
ccs 2
cts 18
cp 0.1111
rs 10

9 Methods

Rating   Name   Duplication   Size   Complexity  
A getExternalReference() 0 4 1
A setExternalReference() 0 4 1
A getChangeDate() 0 4 1
A setChangeDate() 0 4 1
A getChangedBy() 0 4 1
A getRecordData() 0 4 1
A getIsCompacted() 0 4 1
A getCompactedHistory() 0 4 1
A setCompactedHistory() 0 4 1
1
<?php
2
/**
3
 * File was created 05.02.2015 23:57
4
 */
5
6
namespace PeekAndPoke\Component\Slumber\Data\Addon\Journal\DomainModel;
7
8
/**
9
 * @author Karsten J. Gerber <[email protected]>
10
 */
11
class NullRecord implements Record
12
{
13
    /**
14
     * {@inheritdoc}
15
     */
16
    public function getExternalReference()
17
    {
18
        return null;
19
    }
20
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function setExternalReference($ref)
25
    {
26
        return $this;
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function getChangeDate()
33
    {
34
        return new \DateTime('now');
35
    }
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    public function setChangeDate(\DateTime $date)
41
    {
42
        return $this;
43
    }
44
45
    /**
46
     * {@inheritdoc}
47
     */
48
    public function getChangedBy()
49
    {
50
        return '';
51
    }
52
53
    /**
54
     * {@inheritdoc}
55
     */
56 3
    public function getRecordData()
57
    {
58 3
        return [];
59
    }
60
61
    /**
62
     * {@inheritdoc}
63
     */
64
    public function getIsCompacted()
65
    {
66
        return false;
67
    }
68
69
    /**
70
     * {@inheritdoc}
71
     */
72
    public function getCompactedHistory()
73
    {
74
        return null;
75
    }
76
77
    /**
78
     * {@inheritdoc}
79
     */
80
    public function setCompactedHistory(RecordableHistory $history)
81
    {
82
        return $this;
83
    }
84
}
85