public function setQueues($queues)
    {
        if ($this->status != self::STATUS_NEW) {
            throw new \RuntimeException('Cannot set worker queues after worker has started working');
        }

        $this->queues = $queues;
    }
public function setQueues($queues)
    {
        if ($this->status != self::STATUS_NEW) {
            throw new \RuntimeException('Cannot set worker queues after worker has started working');
        }

        $this->queues = $queues;
    }
public function setQueues ( $ queues ) { if ( $ this -> status != self :: STATUS_NEW ) { throw new \ RuntimeException ( 'Cannot set worker queues after worker has started working' ) ; } $ this -> queues = $ queues ; }
Set the worker queues

@param  string $queues Queues for worker to watch
@return array
Set the worker queues