Final Class Yiisoft\Queue\AMQP\Settings\Queue
| Inheritance | Yiisoft\Queue\AMQP\Settings\Queue |
|---|---|
| Implements | Yiisoft\Queue\AMQP\Settings\QueueSettingsInterface |
Public Methods
Method Details
| public mixed __construct ( string $queueName = QueueInterface::DEFAULT_CHANNEL, boolean $passive = false, boolean $durable = true, boolean $exclusive = false, boolean $autoDelete = false, boolean $nowait = false, \PhpAmqpLib\Wire\AMQPTable|array $arguments = [], integer|null $ticket = null ) | ||
| $queueName | string | |
| $passive | boolean | |
| $durable | boolean | |
| $exclusive | boolean | |
| $autoDelete | boolean | |
| $nowait | boolean | |
| $arguments | \PhpAmqpLib\Wire\AMQPTable|array | |
| $ticket | integer|null | |
public function __construct(
private string $queueName = QueueInterface::DEFAULT_CHANNEL,
private bool $passive = false,
private bool $durable = true,
private bool $exclusive = false,
private bool $autoDelete = 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->queueName,
$this->passive,
$this->durable,
$this->exclusive,
$this->autoDelete,
$this->nowait,
$this->arguments,
$this->ticket,
];
}
| public boolean isAutoDeletable ( ) |
public function isAutoDeletable(): bool
{
return $this->autoDelete;
}
| public self withArguments ( \PhpAmqpLib\Wire\AMQPTable|array $arguments ) | ||
| $arguments | \PhpAmqpLib\Wire\AMQPTable|array | |
public function withArguments(AMQPTable|array $arguments): self
{
$new = clone $this;
$new->arguments = $arguments;
return $new;
}
| public self withAutoDeletable ( boolean $autoDeletable ) | ||
| $autoDeletable | boolean | |
public function withAutoDeletable(bool $autoDeletable): self
{
$new = clone $this;
$new->autoDelete = $autoDeletable;
return $new;
}
| public self withDurable ( boolean $durable ) | ||
| $durable | boolean | |
public function withDurable(bool $durable): self
{
$new = clone $this;
$new->durable = $durable;
return $new;
}
| public self withExclusive ( boolean $exclusive ) | ||
| $exclusive | boolean | |
public function withExclusive(bool $exclusive): self
{
$new = clone $this;
$new->exclusive = $exclusive;
return $new;
}
| public self withName ( string $name ) | ||
| $name | string | |
public function withName(string $name): self
{
$instance = clone $this;
$instance->queueName = $name;
return $instance;
}
| public self withNowait ( boolean $nowait ) | ||
| $nowait | boolean | |
public function withNowait(bool $nowait): self
{
$new = clone $this;
$new->nowait = $nowait;
return $new;
}
| public self withPassive ( boolean $passive ) | ||
| $passive | boolean | |
public function withPassive(bool $passive): self
{
$new = clone $this;
$new->passive = $passive;
return $new;
}
| public self withTicket ( integer|null $ticket ) | ||
| $ticket | integer|null | |
public function withTicket(?int $ticket): self
{
$new = clone $this;
$new->ticket = $ticket;
return $new;
}
Signup or Login in order to comment.