public function setExchangeOptions(array $options)
{
if (!isset($options['name']) || !$this->isValidExchangeName($options['name'])) {
throw new InvalidArgumentException('You must provide an exchange name');
}
if (empty($options['type'])) {
throw new InvalidArgumentException('You must provide an exchange type');
}
$this->exchangeOptions = array_merge($this->exchangeOptions, $options);
}