Ejemplo n.º 1
0
Archivo: BBQ.php Proyecto: yiqing95/bbq
 /**
  * 
  * @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];
 }
Ejemplo n.º 2
0
 public function __construct(JobInterface $job, $message, $code = null, $previous = null)
 {
     parent::__construct($message, $code, $previous);
     $this->job = $job;
 }