public final function getTaskId() { if ($this->taskHandler !== null) { return $this->taskHandler->getTaskId(); } return -1; }