Completed
Push — master ( 329666...b8b013 )
by Wachter
06:11
created

Task::setKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 0
cts 0
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Task\TaskBundle\Entity;
4
5
use Task\TaskInterface;
6
7
class Task
8
{
9
    /**
10
     * @var int
11
     */
12
    private $id;
13
14
    /**
15
     * @var string
16
     */
17
    private $uuid;
18
19
    /**
20
     * @var string
21
     */
22
    private $key;
23
24
    /**
25
     * @var TaskInterface
26
     */
27
    private $task;
28
29
    /**
30
     * @var \DateTime
31
     */
32
    private $executionDate;
33
34
    /**
35
     * @var bool
36
     */
37
    private $completed;
38
39
    /**
40
     * @return int
41
     */
42
    public function getId()
43
    {
44
        return $this->id;
45 24
    }
46
47 24
    /**
48
     * @return string
49
     */
50
    public function getUuid()
51
    {
52
        return $this->uuid;
53 30
    }
54
55 30
    /**
56 30
     * @param string $uuid
57
     */
58
    public function setUuid($uuid)
59
    {
60
        $this->uuid = $uuid;
61 6
    }
62
63 6
    /**
64
     * @return TaskInterface
65
     */
66
    public function getTask()
67
    {
68
        return $this->task;
69 30
    }
70
71 30
    /**
72 30
     * @param TaskInterface $task
73
     */
74
    public function setTask($task)
75
    {
76
        $this->task = $task;
77 24
    }
78
79 24
    /**
80
     * @return \DateTime
81
     */
82
    public function getExecutionDate()
83
    {
84
        return $this->executionDate;
85 30
    }
86
87 30
    /**
88 30
     * @param \DateTime $executionDate
89
     */
90
    public function setExecutionDate($executionDate)
91
    {
92
        $this->executionDate = $executionDate;
93 24
    }
94
95 24
    /**
96
     * @return bool
97
     */
98
    public function isCompleted()
99
    {
100
        return $this->completed;
101 30
    }
102
103 30
    /**
104 30
     * @param bool $completed
105
     */
106
    public function setCompleted($completed)
107
    {
108
        $this->completed = $completed;
109
    }
110
111
    /**
112
     * @return string
113
     */
114
    public function getKey()
115
    {
116
        return $this->key;
117
    }
118
119
    /**
120
     * @param string $key
121
     * @return $this
122
     */
123
    public function setKey($key)
124
    {
125
        $this->key = $key;
126
    }
127
}
128