Thumper\BaseAmqp::setExchangeOptions PHP Метод

setExchangeOptions() публичный Метод

public setExchangeOptions ( array $options )
$options array
    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);
    }