public function getStatusOfTaskWithId($taskId)
    {
        $task = $this->taskRepo->find($taskId);
        if (!($task instanceof Task)) {
            //the task was not found
            return Task::STATUS_GONE;
        }
        return $task->getStatus();
    }
public function getStatusOfTaskWithId($taskId)
    {
        $task = $this->taskRepo->find($taskId);
        if (!($task instanceof Task)) {
            //the task was not found
            return Task::STATUS_GONE;
        }
        return $task->getStatus();
    }
public function getStatusOfTaskWithId ( $ taskId ) { $ task = $ this -> taskRepo -> find ( $ taskId ) ; if ( ! ( $ task instanceof Task ) ) { //the task was not found return Task :: STATUS_GONE ; } return $ task -> getStatus ( ) ; }
Returns the current status of a task

@param integer $taskId
@return string
Returns the current status of a task