1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
/* |
6
|
|
|
* This file is part of the timechimp bundle package. |
7
|
|
|
* (c) Connect Holland. |
8
|
|
|
*/ |
9
|
|
|
|
10
|
|
|
namespace ConnectHolland\TimechimpBundle\Api\Model; |
11
|
|
|
|
12
|
|
|
class ProjectTask |
13
|
|
|
{ |
14
|
|
|
/** |
15
|
|
|
* @var int|null |
16
|
|
|
*/ |
17
|
|
|
protected $id; |
18
|
|
|
/** |
19
|
|
|
* Task id is required. |
20
|
|
|
* |
21
|
|
|
* @var int|null |
22
|
|
|
*/ |
23
|
|
|
protected $taskId; |
24
|
|
|
/** |
25
|
|
|
* Name of task. Only get, no set. |
26
|
|
|
* |
27
|
|
|
* @var string|null |
28
|
|
|
*/ |
29
|
|
|
protected $taskName; |
30
|
|
|
/** |
31
|
|
|
* @var float|null |
32
|
|
|
*/ |
33
|
|
|
protected $hourlyRate; |
34
|
|
|
/** |
35
|
|
|
* @var bool|null |
36
|
|
|
*/ |
37
|
|
|
protected $billable; |
38
|
|
|
/** |
39
|
|
|
* @var bool|null |
40
|
|
|
*/ |
41
|
|
|
protected $unspecified; |
42
|
|
|
/** |
43
|
|
|
* @var float|null |
44
|
|
|
*/ |
45
|
|
|
protected $budgetHours; |
46
|
|
|
|
47
|
|
|
public function getId(): ?int |
48
|
|
|
{ |
49
|
|
|
return $this->id; |
50
|
|
|
} |
51
|
|
|
|
52
|
|
|
public function setId(?int $id): self |
53
|
|
|
{ |
54
|
|
|
$this->id = $id; |
55
|
|
|
|
56
|
|
|
return $this; |
57
|
|
|
} |
58
|
|
|
|
59
|
|
|
/** |
60
|
|
|
* Task id is required. |
61
|
|
|
*/ |
62
|
|
|
public function getTaskId(): ?int |
63
|
|
|
{ |
64
|
|
|
return $this->taskId; |
65
|
|
|
} |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* Task id is required. |
69
|
|
|
*/ |
70
|
|
|
public function setTaskId(?int $taskId): self |
71
|
|
|
{ |
72
|
|
|
$this->taskId = $taskId; |
73
|
|
|
|
74
|
|
|
return $this; |
75
|
|
|
} |
76
|
|
|
|
77
|
|
|
/** |
78
|
|
|
* Name of task. Only get, no set. |
79
|
|
|
*/ |
80
|
|
|
public function getTaskName(): ?string |
81
|
|
|
{ |
82
|
|
|
return $this->taskName; |
83
|
|
|
} |
84
|
|
|
|
85
|
|
|
/** |
86
|
|
|
* Name of task. Only get, no set. |
87
|
|
|
*/ |
88
|
|
|
public function setTaskName(?string $taskName): self |
89
|
|
|
{ |
90
|
|
|
$this->taskName = $taskName; |
91
|
|
|
|
92
|
|
|
return $this; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
public function getHourlyRate(): ?float |
96
|
|
|
{ |
97
|
|
|
return $this->hourlyRate; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
public function setHourlyRate(?float $hourlyRate): self |
101
|
|
|
{ |
102
|
|
|
$this->hourlyRate = $hourlyRate; |
103
|
|
|
|
104
|
|
|
return $this; |
105
|
|
|
} |
106
|
|
|
|
107
|
|
|
public function getBillable(): ?bool |
108
|
|
|
{ |
109
|
|
|
return $this->billable; |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
public function setBillable(?bool $billable): self |
113
|
|
|
{ |
114
|
|
|
$this->billable = $billable; |
115
|
|
|
|
116
|
|
|
return $this; |
117
|
|
|
} |
118
|
|
|
|
119
|
|
|
public function getUnspecified(): ?bool |
120
|
|
|
{ |
121
|
|
|
return $this->unspecified; |
122
|
|
|
} |
123
|
|
|
|
124
|
|
|
public function setUnspecified(?bool $unspecified): self |
125
|
|
|
{ |
126
|
|
|
$this->unspecified = $unspecified; |
127
|
|
|
|
128
|
|
|
return $this; |
129
|
|
|
} |
130
|
|
|
|
131
|
|
|
public function getBudgetHours(): ?float |
132
|
|
|
{ |
133
|
|
|
return $this->budgetHours; |
134
|
|
|
} |
135
|
|
|
|
136
|
|
|
public function setBudgetHours(?float $budgetHours): self |
137
|
|
|
{ |
138
|
|
|
$this->budgetHours = $budgetHours; |
139
|
|
|
|
140
|
|
|
return $this; |
141
|
|
|
} |
142
|
|
|
} |
143
|
|
|
|