| @@ 181-193 (lines=13) @@ | ||
| 178 | * @override |
|
| 179 | * @inheritDoc |
|
| 180 | */ |
|
| 181 | public function pause() |
|
| 182 | { |
|
| 183 | if (!$this->paused) |
|
| 184 | { |
|
| 185 | $this->paused = true; |
|
| 186 | ||
| 187 | if ($this->timer !== null) |
|
| 188 | { |
|
| 189 | $this->timer->cancel(); |
|
| 190 | $this->timer = null; |
|
| 191 | } |
|
| 192 | } |
|
| 193 | } |
|
| 194 | ||
| 195 | /** |
|
| 196 | * @override |
|
| @@ 178-190 (lines=13) @@ | ||
| 175 | * @override |
|
| 176 | * @inheritDoc |
|
| 177 | */ |
|
| 178 | public function pause() |
|
| 179 | { |
|
| 180 | if (!$this->paused) |
|
| 181 | { |
|
| 182 | $this->paused = true; |
|
| 183 | ||
| 184 | if ($this->timer !== null) |
|
| 185 | { |
|
| 186 | $this->timer->cancel(); |
|
| 187 | $this->timer = null; |
|
| 188 | } |
|
| 189 | } |
|
| 190 | } |
|
| 191 | ||
| 192 | /** |
|
| 193 | * @override |
|