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

Task   A

Complexity

Total Complexity 9

Size/Duplication

Total Lines 99
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 90.91%

Importance

Changes 2
Bugs 0 Features 2
Metric Value
wmc 9
c 2
b 0
f 2
lcom 0
cbo 0
dl 0
loc 99
ccs 20
cts 22
cp 0.9091
rs 10

9 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getUuid() 0 4 1
A setUuid() 0 4 1
A getTask() 0 4 1
A setTask() 0 4 1
A getExecutionDate() 0 4 1
A setExecutionDate() 0 4 1
A isCompleted() 0 4 1
A setCompleted() 0 4 1
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