blob: a79381174f6e299441eb0be2eb95d364a652dabf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
<?php
/**
* File holding the GanttSection class
*
* Creats Section with params
*
* @author Sebastian Schmid
* @file
* @ingroup SemanticResultFormats
*/
namespace SRF\Gantt;
class GanttSection {
private $mTitle;
private $mID;
private $mEarliestStartDate;
private $mLatestEndDate;
private $mTasks = [];
public function setTitle( $title ) {
$this->mTitle = $title;
}
public function getTitle() {
return $this->mTitle;
}
public function setID( $id ) {
$this->mID = $id;
}
public function getID() {
return $this->mID;
}
public function setEarliestStartDate( $earliestStartDate ) {
$this->mEarliestStartDate = $earliestStartDate;
}
public function getEarliestStartDate() {
return $this->mEarliestStartDate;
}
public function setLatestEndDate( $latestEndDate ) {
$this->mLatestEndDate = $latestEndDate;
}
public function getLatestEndDate() {
return $this->mLatestEndDate;
}
public function getTasks() {
return $this->mTasks;
}
// If we reorder the tasks we need to reset it with the ordered tasks
public function setTasks( $tasks ) {
$this->mTasks = $tasks;
}
public function addTask( $task ) {
$this->mTasks[] = $task;
}
}
|