public final function setHandler($taskHandler) { if ($this->taskHandler === null or $taskHandler === null) { $this->taskHandler = $taskHandler; } }
public function remove() { $this->cancelled = true; $this->task->setHandler(null); }