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 mixed __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 )
$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 \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->exchangeName;
}

            
getPositionalSettings() public method

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

            
getTicket() public method

public integer|null getTicket ( )

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

            
getType() public method

public string getType ( )

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

            
hasNowait() public method

public boolean hasNowait ( )

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

            
isAutoDelete() public method

public boolean isAutoDelete ( )

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

            
isDurable() public method

public boolean isDurable ( )

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

            
isInternal() public method

public boolean isInternal ( )

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

            
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): ExchangeSettingsInterface
{
    $new = clone $this;
    $new->arguments = $arguments;
    return $new;
}

            
withAutoDelete() public method

public self withAutoDelete ( boolean $autoDelete )
$autoDelete boolean

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

            
withDurable() public method

public self withDurable ( boolean $durable )
$durable boolean

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

            
withInternal() public method

public self withInternal ( boolean $internal )
$internal boolean

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

            
withName() public method

public self withName ( string $name )
$name string

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

            
withNowait() public method

public self withNowait ( boolean $nowait )
$nowait boolean

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

            
withPassive() public method

public self withPassive ( boolean $passive )
$passive boolean

                public function withPassive(bool $passive): ExchangeSettingsInterface
{
    $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): ExchangeSettingsInterface
{
    $new = clone $this;
    $new->ticket = $ticket;
    return $new;
}

            
withType() public method

public self withType ( string $type )
$type string

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