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