0

Final Class Yiisoft\Queue\Debug\QueueConsumerProviderProxy

InheritanceYiisoft\Queue\Debug\QueueConsumerProviderProxy
ImplementsYiisoft\Queue\Provider\QueueConsumerProviderInterface

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( Yiisoft\Queue\Provider\QueueConsumerProviderInterface $provider, Yiisoft\Queue\Debug\QueueCollector $collector )
$provider Yiisoft\Queue\Provider\QueueConsumerProviderInterface
$collector Yiisoft\Queue\Debug\QueueCollector

                public function __construct(private readonly QueueConsumerProviderInterface $provider, private readonly QueueCollector $collector) {}

            
getConsumer() public method

public Yiisoft\Queue\QueueConsumerInterface getConsumer ( string|\BackedEnum $queueName )
$queueName string|\BackedEnum

                public function getConsumer(string|BackedEnum $queueName): QueueConsumerInterface
{
    return new QueueConsumerDecorator($this->provider->getConsumer($queueName), $this->collector);
}

            
getConsumerQueueNames() public method

public array getConsumerQueueNames ( )

                public function getConsumerQueueNames(): array
{
    return $this->provider->getConsumerQueueNames();
}

            
hasConsumer() public method

public boolean hasConsumer ( string|\BackedEnum $queueName )
$queueName string|\BackedEnum

                public function hasConsumer(string|BackedEnum $queueName): bool
{
    return $this->provider->hasConsumer($queueName);
}