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