Completed
Push — master ( 33e149...329666 )
by Wachter
09:05
created

Task::getId()   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 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 0
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 TaskInterface
21
     */
22
    private $task;
23
24
    /**
25
     * @var \DateTime
26
     */
27
    private $executionDate;
28
29
    /**
30
     * @var bool
31
     */
32
    private $completed;
33
34
    /**
35
     * @return int
36
     */
37
    public function getId()
38
    {
39
        return $this->id;
40
    }
41
42
    /**
43
     * @return string
44
     */
45 24
    public function getUuid()
46
    {
47 24
        return $this->uuid;
48
    }
49
50
    /**
51
     * @param string $uuid
52
     */
53 30
    public function setUuid($uuid)
54
    {
55 30
        $this->uuid = $uuid;
56 30
    }
57
58
    /**
59
     * @return TaskInterface
60
     */
61 6
    public function getTask()
62
    {
63 6
        return $this->task;
64
    }
65
66
    /**
67
     * @param TaskInterface $task
68
     */
69 30
    public function setTask($task)
70
    {
71 30
        $this->task = $task;
72 30
    }
73
74
    /**
75
     * @return \DateTime
76
     */
77 24
    public function getExecutionDate()
78
    {
79 24
        return $this->executionDate;
80
    }
81
82
    /**
83
     * @param \DateTime $executionDate
84
     */
85 30
    public function setExecutionDate($executionDate)
86
    {
87 30
        $this->executionDate = $executionDate;
88 30
    }
89
90
    /**
91
     * @return bool
92
     */
93 24
    public function isCompleted()
94
    {
95 24
        return $this->completed;
96
    }
97
98
    /**
99
     * @param bool $completed
100
     */
101 30
    public function setCompleted($completed)
102
    {
103 30
        $this->completed = $completed;
104 30
    }
105
}
106