public function getProject(int $projectId)
    {
        if ( ! $this->validateId($projectId)) {
            return false;
        }

        $result = $this->get('projects/' . $projectId);

        if (200 === $result->getStatusCode()) {
            return json_decode($result->getBody()->getContents());
        }

        return false;
    }
public function getProject(int $projectId)
    {
        if ( ! $this->validateId($projectId)) {
            return false;
        }

        $result = $this->get('projects/' . $projectId);

        if (200 === $result->getStatusCode()) {
            return json_decode($result->getBody()->getContents());
        }

        return false;
    }
public function getProject ( int $ projectId ) { if ( ! $ this -> validateId ( $ projectId ) ) { return false ; } $ result = $ this -> get ( 'projects/' . $ projectId ) ; if ( 200 === $ result -> getStatusCode ( ) ) { return json_decode ( $ result -> getBody ( ) -> getContents ( ) ) ; } return false ; }
Get a project.

@param int $projectId ID of the project.

@return object|bool Object with values of the project, or false on failure.
Get a project .