RecordDiffEntry   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 45
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
dl 0
loc 45
c 0
b 0
f 0
wmc 4
lcom 0
cbo 0
ccs 11
cts 11
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getKey() 0 4 1
A getBefore() 0 4 1
A getAfter() 0 4 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