@@ 114-121 (lines=8) @@ | ||
111 | * |
|
112 | * @return string |
|
113 | */ |
|
114 | public function getStartTime() |
|
115 | { |
|
116 | $firstIntermediate = reset($this->intermediateBookings); |
|
117 | if ($this->isClipped() && $firstIntermediate instanceof Pause && $firstIntermediate->isPauseEnd()) { |
|
118 | return $firstIntermediate->getTime(); |
|
119 | } |
|
120 | return $this->getStartBooking()->getTime(); |
|
121 | } |
|
122 | ||
123 | /** |
|
124 | * Getter for the first booking of the task instance |
|
@@ 138-145 (lines=8) @@ | ||
135 | * |
|
136 | * @return string |
|
137 | */ |
|
138 | public function isPushed() |
|
139 | { |
|
140 | $firstIntermediate = reset($this->intermediateBookings); |
|
141 | if ($this->isClipped() && $firstIntermediate instanceof Pause && $firstIntermediate->isPauseEnd()) { |
|
142 | return $firstIntermediate->isPushed(); |
|
143 | } |
|
144 | return $this->getStartBooking()->isPushed(); |
|
145 | } |
|
146 | ||
147 | /** |
|
148 | * Getter for the last booking of the task instance |