src/PHPCRAPI/PHPCR/AbstractCollection.php
public function get($name)
    {
        if (!array_key_exists($name, $this->items)) {
            throw new CollectionUnknownKeyException(sprintf('Item name=%s does not exist in collection',$name));
        }

        return $this->items[$name];
    }
public function get($name)
    {
        if (!array_key_exists($name, $this->items)) {
            throw new CollectionUnknownKeyException(sprintf('Item name=%s does not exist in collection',$name));
        }

        return $this->items[$name];
    }
public function get ( $ name ) { if ( ! array_key_exists ( $ name , $ this -> items ) ) { throw new CollectionUnknownKeyException ( sprintf ( 'Item name=%s does not exist in collection' , $ name ) ) ; } return $ this -> items [ $ name ] ; }
Get an item from the collection

@param string $name The name of the item

@return Repository The found item

@throws CollectionUnknownKeyException if the item does not exist in the collection

@api
Get an item from the collection