public function getMetadataByResourceName($resourceName)
    {
        $this->getAllMetadata();

        if (!isset($this->resourceClassMap[$resourceName])) {
            throw Exception::resourceNotFound($resourceName);
        }

        return $this->loadedMetadata[$this->resourceClassMap[$resourceName]];
    }
public function getMetadataByResourceName($resourceName)
    {
        $this->getAllMetadata();

        if (!isset($this->resourceClassMap[$resourceName])) {
            throw Exception::resourceNotFound($resourceName);
        }

        return $this->loadedMetadata[$this->resourceClassMap[$resourceName]];
    }
public function getMetadataByResourceName ( $ resourceName ) { $ this -> getAllMetadata ( ) ; if ( ! isset ( $ this -> resourceClassMap [ $ resourceName ] ) ) { throw Exception :: resourceNotFound ( $ resourceName ) ; } return $ this -> loadedMetadata [ $ this -> resourceClassMap [ $ resourceName ] ] ; }
Returns ResourceMetadata for the specified resource.

@param  string                                     $resourceName
@throws \BedRest\Resource\Mapping\Exception
@return \BedRest\Resource\Mapping\ResourceMetadata
Returns ResourceMetadata for the specified resource .