queue() public method

Get a queue
public queue ( string $name ) : Queue
$name string Queue name
return Disque\Queue\Queue Queue
 /**
  * Mark a job as failed
  *
  * @access public
  * @param  Job $job
  * @return $this
  */
 public function failed(Job $job)
 {
     $this->disque->queue($this->queueName)->failed(new DisqueJob($job->getBody(), $job->getId()));
     return $this;
 }
 /**
  * @param $name
  * @return \Disque\Queue\Queue
  */
 public function queue($name)
 {
     return $this->disque->queue($name);
 }