NullRecord::getChangedBy()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
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