public function __construct($name, $queues, Client $client, $interval = 60) { $this->workerName = $name; $this->queues = []; $this->client = $client; $this->interval = $interval; foreach ($queues as $queue) { $this->queues[] = $this->client->getQueue($queue); } $this->logger = new NullLogger(); }
public function queueLength($queue) { return $this->client->getQueue($queue)->length(); }