src/Connector/Resources.php
public function getResource(string $project, string $resource, bool $details = false): ResponseInterface
    {
        $uri = $this->createUri("/api/2/project/$project/resource/$resource/");

        if ($details) {
            $uri = $uri->withQuery('details');
        }

        return $this->client->sendRequest($this->createRequest('GET', $uri));
    }
public function getResource(string $project, string $resource, bool $details = false): ResponseInterface
    {
        $uri = $this->createUri("/api/2/project/$project/resource/$resource/");

        if ($details) {
            $uri = $uri->withQuery('details');
        }

        return $this->client->sendRequest($this->createRequest('GET', $uri));
    }
public function getResource ( string $ project , string $ resource , bool $ details = false ) : ResponseInterface { $ uri = $ this -> createUri ( "/api/2/project/$project/resource/$resource/" ) ; if ( $ details ) { $ uri = $ uri -> withQuery ( 'details' ) ; } return $ this -> client -> sendRequest ( $ this -> createRequest ( 'GET' , $ uri ) ) ; }
Get information about a resource within a project.

@param string $project  The slug for the project the resource is part of
@param string $resource The resource slug within the project
@param bool   $details  True to retrieve additional project details

@return ResponseInterface
Get information about a resource within a project .