src/acdhOeaw/fedora/FedoraCache.php
public function getById(string $id): FedoraResource {
        if (!isset($this->id2uri[$id])) {
            throw new NotInCache();
        }
        return $this->cache[$this->id2uri[$id]];
    }
public function getById(string $id): FedoraResource {
        if (!isset($this->id2uri[$id])) {
            throw new NotInCache();
        }
        return $this->cache[$this->id2uri[$id]];
    }
public function getById ( string $ id ) : FedoraResource { if ( ! isset ( $ this -> id2uri [ $ id ] ) ) { throw new NotInCache ( ) ; } return $ this -> cache [ $ this -> id2uri [ $ id ] ] ; }
Gets a resource from cache by its repo internal id.
@param string $id resource's repo internal id
@return FedoraResource
@throws NotInCache
Gets a resource from cache by its repo internal id .