queues() публичный Метод

If * is found in the list of queues, every queue will be searched in alphabetic order. (@see $fetch)
public queues ( boolean $fetch = true ) : array
$fetch boolean If true, and the queue is set to *, will fetch all queue names from redis.
Результат array Array of associated queues.
Пример #1
0
 /**
  * @return Queue[]
  */
 public function queues()
 {
     $queues = \array_map(function ($queue) {
         return new Queue($queue);
     }, $this->worker->queues());
     return $queues;
 }
Пример #2
0
 public function getQueues()
 {
     return \array_map(function ($queue) {
         return new Queue($queue);
     }, $this->worker->queues());
 }