0 follower

Final Class Yiisoft\Queue\AMQP\Settings\Queue

InheritanceYiisoft\Queue\AMQP\Settings\Queue
ImplementsYiisoft\Queue\AMQP\Settings\QueueSettingsInterface

Method Details

Hide inherited methods

__construct() public method

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
) {
}

            
getArguments() public method

public \PhpAmqpLib\Wire\AMQPTable|array getArguments ( )

                public function getArguments(): AMQPTable|array
{
    return $this->arguments;
}

            
getName() public method

public string getName ( )

                public function getName(): string
{
    return $this->queueName;
}

            
getPositionalSettings() public method

public array getPositionalSettings ( )

                public function getPositionalSettings(): array
{
    return [
        $this->queueName,
        $this->passive,
        $this->durable,
        $this->exclusive,
        $this->autoDelete,
        $this->nowait,
        $this->arguments,
        $this->ticket,
    ];
}

            
getTicket() public method

public integer|null getTicket ( )

                public function getTicket(): ?int
{
    return $this->ticket;
}

            
hasNowait() public method

public boolean hasNowait ( )

                public function hasNowait(): bool
{
    return $this->nowait;
}

            
isAutoDeletable() public method

public boolean isAutoDeletable ( )

                public function isAutoDeletable(): bool
{
    return $this->autoDelete;
}

            
isDurable() public method

public boolean isDurable ( )

                public function isDurable(): bool
{
    return $this->durable;
}

            
isExclusive() public method

public boolean isExclusive ( )

                public function isExclusive(): bool
{
    return $this->exclusive;
}

            
isPassive() public method

public boolean isPassive ( )

                public function isPassive(): bool
{
    return $this->passive;
}

            
withArguments() public method

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;
}

            
withAutoDeletable() public method

public self withAutoDeletable ( boolean $autoDeletable )
$autoDeletable boolean

                public function withAutoDeletable(bool $autoDeletable): self
{
    $new = clone $this;
    $new->autoDelete = $autoDeletable;
    return $new;
}

            
withDurable() public method

public self withDurable ( boolean $durable )
$durable boolean

                public function withDurable(bool $durable): self
{
    $new = clone $this;
    $new->durable = $durable;
    return $new;
}

            
withExclusive() public method

public self withExclusive ( boolean $exclusive )
$exclusive boolean

                public function withExclusive(bool $exclusive): self
{
    $new = clone $this;
    $new->exclusive = $exclusive;
    return $new;
}

            
withName() public method

public self withName ( string $name )
$name string

                public function withName(string $name): self
{
    $instance = clone $this;
    $instance->queueName = $name;
    return $instance;
}

            
withNowait() public method

public self withNowait ( boolean $nowait )
$nowait boolean

                public function withNowait(bool $nowait): self
{
    $new = clone $this;
    $new->nowait = $nowait;
    return $new;
}

            
withPassive() public method

public self withPassive ( boolean $passive )
$passive boolean

                public function withPassive(bool $passive): self
{
    $new = clone $this;
    $new->passive = $passive;
    return $new;
}

            
withTicket() public method

public self withTicket ( integer|null $ticket )
$ticket integer|null

                public function withTicket(?int $ticket): self
{
    $new = clone $this;
    $new->ticket = $ticket;
    return $new;
}