Final Class Yiisoft\Queue\AMQP\Settings\Exchange
| Inheritance | Yiisoft\Queue\AMQP\Settings\Exchange |
|---|---|
| Implements | Yiisoft\Queue\AMQP\Settings\ExchangeSettingsInterface |
Public Methods
Method Details
| public mixed __construct ( string $exchangeName, string $type = AMQPExchangeType::DIRECT, boolean $passive = false, boolean $durable = true, boolean $autoDelete = true, boolean $internal = false, boolean $nowait = false, \PhpAmqpLib\Wire\AMQPTable|array $arguments = [], integer|null $ticket = null ) | ||
| $exchangeName | string | |
| $type | string | |
| $passive | boolean | |
| $durable | boolean | |
| $autoDelete | boolean | |
| $internal | boolean | |
| $nowait | boolean | |
| $arguments | \PhpAmqpLib\Wire\AMQPTable|array | |
| $ticket | integer|null | |
public function __construct(
private string $exchangeName,
private string $type = AMQPExchangeType::DIRECT,
private bool $passive = false,
private bool $durable = true,
private bool $autoDelete = true,
private bool $internal = false,
private bool $nowait = false,
private AMQPTable|array $arguments = [],
private ?int $ticket = null
) {
}
| public \PhpAmqpLib\Wire\AMQPTable|array getArguments ( ) |
public function getArguments(): AMQPTable|array
{
return $this->arguments;
}
| public array getPositionalSettings ( ) |
public function getPositionalSettings(): array
{
return [
$this->exchangeName,
$this->type,
$this->passive,
$this->durable,
$this->autoDelete,
$this->internal,
$this->nowait,
$this->arguments,
$this->ticket,
];
}
| public self withArguments ( \PhpAmqpLib\Wire\AMQPTable|array $arguments ) | ||
| $arguments | \PhpAmqpLib\Wire\AMQPTable|array | |
public function withArguments(AMQPTable|array $arguments): ExchangeSettingsInterface
{
$new = clone $this;
$new->arguments = $arguments;
return $new;
}
| public self withAutoDelete ( boolean $autoDelete ) | ||
| $autoDelete | boolean | |
public function withAutoDelete(bool $autoDelete): ExchangeSettingsInterface
{
$new = clone $this;
$new->autoDelete = $autoDelete;
return $new;
}
| public self withDurable ( boolean $durable ) | ||
| $durable | boolean | |
public function withDurable(bool $durable): ExchangeSettingsInterface
{
$new = clone $this;
$new->durable = $durable;
return $new;
}
| public self withInternal ( boolean $internal ) | ||
| $internal | boolean | |
public function withInternal(bool $internal): ExchangeSettingsInterface
{
$new = clone $this;
$new->internal = $internal;
return $new;
}
| public self withName ( string $name ) | ||
| $name | string | |
public function withName(string $name): ExchangeSettingsInterface
{
$new = clone $this;
$new->exchangeName = $name;
return $new;
}
| public self withNowait ( boolean $nowait ) | ||
| $nowait | boolean | |
public function withNowait(bool $nowait): ExchangeSettingsInterface
{
$new = clone $this;
$new->nowait = $nowait;
return $new;
}
| public self withPassive ( boolean $passive ) | ||
| $passive | boolean | |
public function withPassive(bool $passive): ExchangeSettingsInterface
{
$new = clone $this;
$new->passive = $passive;
return $new;
}
| public self withTicket ( integer|null $ticket ) | ||
| $ticket | integer|null | |
public function withTicket(?int $ticket): ExchangeSettingsInterface
{
$new = clone $this;
$new->ticket = $ticket;
return $new;
}
Signup or Login in order to comment.