src/Exchange/Exchange.php
public function initialize(\AMQPExchange $exchange = null)
    {
        if (null == $exchange) {
            $exchange = new \AMQPExchange($this->channel->getWrappedChannel());
        }

        $this->exchange = $exchange;
        $this->exchange->setName($this->getName());
        $this->exchange->setType($this->context->getType());
        $this->exchange->setArguments($this->context->getArguments());
        $this->exchange->setFlags((int) $this->context->getFlags());
        $this->exchange->declareExchange();
        $this->initialized = true;
    }
public function initialize(\AMQPExchange $exchange = null)
    {
        if (null == $exchange) {
            $exchange = new \AMQPExchange($this->channel->getWrappedChannel());
        }

        $this->exchange = $exchange;
        $this->exchange->setName($this->getName());
        $this->exchange->setType($this->context->getType());
        $this->exchange->setArguments($this->context->getArguments());
        $this->exchange->setFlags((int) $this->context->getFlags());
        $this->exchange->declareExchange();
        $this->initialized = true;
    }
@param \AMQPExchange|null $exchange

@throws HectorException