0 follower

Final Class Yiisoft\Queue\Debug\QueueProviderInterfaceProxy

InheritanceYiisoft\Queue\Debug\QueueProviderInterfaceProxy
ImplementsYiisoft\Queue\Provider\QueueProviderInterface

Constants

Hide inherited constants

Constant Value Description Defined By
DEFAULT_CHANNEL 'yii-queue' Yiisoft\Queue\Provider\QueueProviderInterface

Method Details

Hide inherited methods

__construct() public method

public __construct( Yiisoft\Queue\Provider\QueueProviderInterface $queueProvider, Yiisoft\Queue\Debug\QueueCollector $collector ): mixed
$queueProvider Yiisoft\Queue\Provider\QueueProviderInterface
$collector Yiisoft\Queue\Debug\QueueCollector

                public function __construct(
    private readonly QueueProviderInterface $queueProvider,
    private readonly QueueCollector $collector,
) {}

            
get() public method

public get( string|\BackedEnum $channel ): Yiisoft\Queue\QueueInterface
$channel string|\BackedEnum

                public function get(string|BackedEnum $channel): QueueInterface
{
    $queue = $this->queueProvider->get($channel);
    return new QueueDecorator($queue, $this->collector);
}

            
has() public method

public has( string|\BackedEnum $channel ): boolean
$channel string|\BackedEnum

                public function has(string|BackedEnum $channel): bool
{
    return $this->queueProvider->has($channel);
}