ExecutedMigration   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 59
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 59
c 0
b 0
f 0
wmc 4
lcom 1
cbo 2
ccs 0
cts 18
cp 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
A setName() 0 6 1
A getLogs() 0 4 1
A appendLog() 0 6 1
1
<?php
2
/**
3
 * File was created 05.07.2016 16:37
4
 */
5
6
namespace PeekAndPoke\Component\Slumber\Data\Migration\DomainModel;
7
8
use PeekAndPoke\Component\Slumber\Annotation\Slumber;
9
use PeekAndPoke\Component\Slumber\Data\Addon\SlumberId;
10
use PeekAndPoke\Component\Slumber\Data\Addon\SlumberTimestamped;
11
12
/**
13
 * @author Karsten J. Gerber <[email protected]>
14
 */
15
class ExecutedMigration
16
{
17
    use SlumberId;
18
    use SlumberTimestamped;
19
20
    /**
21
     * @var string
22
     *
23
     * @Slumber\AsString()
24
     */
25
    private $name;
26
27
    /**
28
     * @var string[]
29
     *
30
     * @Slumber\AsList(@Slumber\AsString())
31
     */
32
    private $logs = [];
33
34
    /**
35
     * @return string
36
     */
37
    public function getName()
38
    {
39
        return $this->name;
40
    }
41
42
    /**
43
     * @param string $name
44
     *
45
     * @return $this
46
     */
47
    public function setName($name)
48
    {
49
        $this->name = $name;
50
51
        return $this;
52
    }
53
54
    /**
55
     * @return \string[]
56
     */
57
    public function getLogs()
58
    {
59
        return $this->logs;
60
    }
61
62
    /**
63
     * @param string $log
64
     *
65
     * @return $this
66
     */
67
    public function appendLog($log)
68
    {
69
        $this->logs[] = $log;
70
71
        return $this;
72
    }
73
}
74