public function getProject(string $projectId): Project
    {
        try {
            $project = ProjectFactory::createFromAPIResponse(
                $this->client->getProject($projectId)
            );
        } catch (ClientException $ce) {
            $response = $ce->getResponse();

            throw ExceptionFactory::create($response, $ce);
        }

        return $project;
    }
public function getProject(string $projectId): Project
    {
        try {
            $project = ProjectFactory::createFromAPIResponse(
                $this->client->getProject($projectId)
            );
        } catch (ClientException $ce) {
            $response = $ce->getResponse();

            throw ExceptionFactory::create($response, $ce);
        }

        return $project;
    }
public function getProject ( string $ projectId ) : Project { try { $ project = ProjectFactory :: createFromAPIResponse ( $ this -> client -> getProject ( $ projectId ) ) ; } catch ( ClientException $ ce ) { $ response = $ ce -> getResponse ( ) ; throw ExceptionFactory :: create ( $ response , $ ce ) ; } return $ project ; }
Fetches one project.

@param string $projectId

@return Project

@throws MoovlyException
Fetches one project .