public function getResourceMetadata($resource)
    {
        if (is_object($resource)) {
            $className = get_class($resource);
        } else {
            $className = $resource;
        }
        if (!isset($this->resources[$className])) {
            throw new \Exception('Resource class "'.$className.'" not found');
        }
        return $this->resources[$className];
    }
public function getResourceMetadata($resource)
    {
        if (is_object($resource)) {
            $className = get_class($resource);
        } else {
            $className = $resource;
        }
        if (!isset($this->resources[$className])) {
            throw new \Exception('Resource class "'.$className.'" not found');
        }
        return $this->resources[$className];
    }
public function getResourceMetadata ( $ resource ) { if ( is_object ( $ resource ) ) { $ className = get_class ( $ resource ) ; } else { $ className = $ resource ; } if ( ! isset ( $ this -> resources [ $ className ] ) ) { throw new \ Exception ( 'Resource class "' . $ className . '" not found' ) ; } return $ this -> resources [ $ className ] ; }
Get the already loaded resource annotation metadata
@param  Tonic/Resource $resource
@return ResourceMetadata
Get the already loaded resource annotation metadata