public function declareExchange(
        $exchange,
        $type,
        $passive = false,
        $durable = false,
        $auto_delete = true,
        $internal = false,
        $nowait = false,
        $arguments = null,
        $ticket = null
    ) {
        return $this->getChannel()->exchange_declare(
            $exchange,
            $type,
            $passive,
            $durable,
            $auto_delete,
            $internal,
            $nowait,
            $arguments,
            $ticket
        );
    }
public function declareExchange(
        $exchange,
        $type,
        $passive = false,
        $durable = false,
        $auto_delete = true,
        $internal = false,
        $nowait = false,
        $arguments = null,
        $ticket = null
    ) {
        return $this->getChannel()->exchange_declare(
            $exchange,
            $type,
            $passive,
            $durable,
            $auto_delete,
            $internal,
            $nowait,
            $arguments,
            $ticket
        );
    }
public function declareExchange ( $ exchange , $ type , $ passive = false , $ durable = false , $ auto_delete = true , $ internal = false , $ nowait = false , $ arguments = null , $ ticket = null ) { return $ this -> getChannel ( ) -> exchange_declare ( $ exchange , $ type , $ passive , $ durable , $ auto_delete , $ internal , $ nowait , $ arguments , $ ticket ) ; }
Declares an exchange

This is an alias of method `exchange_declare` of `PhpAmqpLib\Channel\AMQPChannel`.

```php
<?php
$I->declareExchange(
'nameOfMyExchange', // exchange name
'topic' // exchange type
)
```

@param string $exchange
@param string $type
@param bool $passive
@param bool $durable
@param bool $auto_delete
@param bool $internal
@param bool $nowait
@param array $arguments
@param int $ticket
@return mixed|null
Declares an exchange