public function getTask(string $taskId): Google_Service_Tasks
    {
        return $this->service->tasks->get($this->tasklist, $taskId);
    }
public function getTask(string $taskId): Google_Service_Tasks
    {
        return $this->service->tasks->get($this->tasklist, $taskId);
    }
public function getTask ( string $ taskId ) : Google_Service_Tasks { return $ this -> service -> tasks -> get ( $ this -> tasklist , $ taskId ) ; }
Get a single task.

@param string $taskId

@link https://developers.google.com/google-apps/tasks/v1/reference/tasks/get

@return \Google_Service_Tasks
Get a single task .