src/Search/Framework/CollectionAgentAbstract.php
public function getCollection($id)
    {
        if (!isset($this->_collections[$id])) {
            throw new \InvalidArgumentException('Collection not attached: ' . $id);
        }
        return $this->_collections;
    }
public function getCollection($id)
    {
        if (!isset($this->_collections[$id])) {
            throw new \InvalidArgumentException('Collection not attached: ' . $id);
        }
        return $this->_collections;
    }
public function getCollection ( $ id ) { if ( ! isset ( $ this -> _collections [ $ id ] ) ) { throw new \ InvalidArgumentException ( 'Collection not attached: ' . $ id ) ; } return $ this -> _collections ; }
Returns a collection given it's unique identifier.

@param string $id
The unique identifier of the collection.

@return CollectionAbstract

@throws \InvalidArgumentException
Thrown when the collection is not attached.
Returns a collection given it s unique identifier .