src/Bandolier/Type/Collection.php
public function getItem($key)
    {
        if (isset($this->items[$key])) {
            return $this->items[$key];
        } else {
            throw new KeyInvalidException("Invalid key $key.");
        }
    }
public function getItem($key)
    {
        if (isset($this->items[$key])) {
            return $this->items[$key];
        } else {
            throw new KeyInvalidException("Invalid key $key.");
        }
    }
public function getItem ( $ key ) { if ( isset ( $ this -> items [ $ key ] ) ) { return $ this -> items [ $ key ] ; } else { throw new KeyInvalidException ( "Invalid key $key." ) ; } }
Get a collection item
@param $key
@return mixed
@throws KeyInvalidException
Get a collection item