RecordDiffEntry::getAfter()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
/**
3
 * File was created 05.02.2015 21:44
4
 */
5
6
namespace PeekAndPoke\Component\Slumber\Data\Addon\Journal\DomainModel;
7
8
/**
9
 * @author Karsten J. Gerber <[email protected]>
10
 */
11
class RecordDiffEntry
12
{
13
    /** @var string */
14
    private $key;
15
    /** @var string */
16
    private $before;
17
    /** @var string */
18
    private $after;
19
20
    /**
21
     * @param string $key
22
     * @param string $before
23
     * @param string $after
24
     */
25 3
    public function __construct($key, $before, $after)
26
    {
27 3
        $this->key    = $key;
28 3
        $this->before = $before;
29 3
        $this->after  = $after;
30 3
    }
31
32
    /**
33
     * @return string
34
     */
35 3
    public function getKey()
36
    {
37 3
        return $this->key;
38
    }
39
40
    /**
41
     * @return string
42
     */
43 3
    public function getBefore()
44
    {
45 3
        return $this->before;
46
    }
47
48
    /**
49
     * @return string
50
     */
51 3
    public function getAfter()
52
    {
53 3
        return $this->after;
54
    }
55
}
56