0

Final Class Yiisoft\Queue\Debug\QueueConsumerDecorator

InheritanceYiisoft\Queue\Debug\QueueConsumerDecorator
ImplementsYiisoft\Queue\QueueConsumerInterface

Method Details

Hide inherited methods

__construct() public method

public mixed __construct ( Yiisoft\Queue\QueueConsumerInterface $queue, Yiisoft\Queue\Debug\QueueCollector $collector )
$queue Yiisoft\Queue\QueueConsumerInterface
$collector Yiisoft\Queue\Debug\QueueCollector

                public function __construct(private readonly QueueConsumerInterface $queue, private readonly QueueCollector $collector) {}

            
listen() public method

public void listen ( )

                public function listen(): void
{
    $this->queue->listen();
}

            
run() public method

public integer run ( integer $max 0 )
$max integer

                public function run(int $max = 0): int
{
    return $this->queue->run($max);
}