/** * * @param string $id * @return QueueInterface */ public function getQueue($id) { if (false === array_key_exists($id, $this->queueRegistry)) { throw BBQException::unknownQueue($id); } return $this->queueRegistry[$id]; }
public function __construct(JobInterface $job, $message, $code = null, $previous = null) { parent::__construct($message, $code, $previous); $this->job = $job; }