Final Class Yiisoft\Queue\Amqp\Settings\Exchange
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
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, \ | ||
| $exchangeName | string | |
| $type | string | |
| $passive | boolean | |
| $durable | boolean | |
| $autoDelete | boolean | |
| $internal | boolean | |
| $nowait | boolean | |
| $arguments | \ |
|
| $ticket | ?int | |
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 \ |
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 ( \ | ||
| $arguments | \ |
|
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 ( ?int $ticket ) | ||
| $ticket | ?int | |
public function withTicket(?int $ticket): ExchangeSettingsInterface
{
$new = clone $this;
$new->ticket = $ticket;
return $new;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.