0 follower

Final Class Yiisoft\Queue\AMQP\Settings\Exchange

InheritanceYiisoft\Queue\AMQP\Settings\Exchange
ImplementsYiisoft\Queue\AMQP\Settings\ExchangeSettingsInterface

Method Details

Hide inherited methods

__construct() public method

public __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 ): mixed
$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
) {
}

            
getArguments() public method

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

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

            
getName() public method

public getName( ): string

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

            
getPositionalSettings() public method

public getPositionalSettings( ): array

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

            
getTicket() public method

public getTicket( ): integer|null

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

            
getType() public method

public getType( ): string

                public function getType(): string
{
    return $this->type;
}

            
hasNowait() public method

public hasNowait( ): boolean

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

            
isAutoDelete() public method

public isAutoDelete( ): boolean

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

            
isDurable() public method

public isDurable( ): boolean

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

            
isInternal() public method

public isInternal( ): boolean

                public function isInternal(): bool
{
    return $this->internal;
}

            
isPassive() public method

public isPassive( ): boolean

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

            
withArguments() public method

public withArguments( \PhpAmqpLib\Wire\AMQPTable|array $arguments ): self
$arguments \PhpAmqpLib\Wire\AMQPTable|array

                public function withArguments(AMQPTable|array $arguments): ExchangeSettingsInterface
{
    $new = clone $this;
    $new->arguments = $arguments;
    return $new;
}

            
withAutoDelete() public method

public withAutoDelete( boolean $autoDelete ): self
$autoDelete boolean

                public function withAutoDelete(bool $autoDelete): ExchangeSettingsInterface
{
    $new = clone $this;
    $new->autoDelete = $autoDelete;
    return $new;
}

            
withDurable() public method

public withDurable( boolean $durable ): self
$durable boolean

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

            
withInternal() public method

public withInternal( boolean $internal ): self
$internal boolean

                public function withInternal(bool $internal): ExchangeSettingsInterface
{
    $new = clone $this;
    $new->internal = $internal;
    return $new;
}

            
withName() public method

public withName( string $name ): self
$name string

                public function withName(string $name): ExchangeSettingsInterface
{
    $new = clone $this;
    $new->exchangeName = $name;
    return $new;
}

            
withNowait() public method

public withNowait( boolean $nowait ): self
$nowait boolean

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

            
withPassive() public method

public withPassive( boolean $passive ): self
$passive boolean

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

            
withTicket() public method

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

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

            
withType() public method

public withType( string $type ): self
$type string

                public function withType(string $type): ExchangeSettingsInterface
{
    $new = clone $this;
    $new->type = $type;
    return $new;
}