/** * @return Queue[] */ public function queues() { $queues = \array_map(function ($queue) { return new Queue($queue); }, $this->worker->queues()); return $queues; }
public function getQueues() { return \array_map(function ($queue) { return new Queue($queue); }, $this->worker->queues()); }