private function getResource()
    {
        $resource = $this->resourceListing->getResource($this->context->getPath(), $this->context->getVersion());

        if (!$resource instanceof Resource) {
            throw new StatusCode\InternalServerErrorException('Resource is not available');
        }

        return $resource;
    }
private function getResource()
    {
        $resource = $this->resourceListing->getResource($this->context->getPath(), $this->context->getVersion());

        if (!$resource instanceof Resource) {
            throw new StatusCode\InternalServerErrorException('Resource is not available');
        }

        return $resource;
    }
private function getResource ( ) { $ resource = $ this -> resourceListing -> getResource ( $ this -> context -> getPath ( ) , $ this -> context -> getVersion ( ) ) ; if ( ! $ resource instanceof Resource ) { throw new StatusCode \ InternalServerErrorException ( 'Resource is not available' ) ; } return $ resource ; }
Returns the resource from the listing for the current path

@return \PSX\Api\Resource
Returns the resource from the listing for the current path