Beispiel #1
0
 /**
  * @param int                      $id
  * @param string                   $data
  * @param JobControlInterface      $queue
  * @param NotSerializableException $exception
  */
 public function __construct($id, $data, JobControlInterface $queue, NotSerializableException $exception)
 {
     parent::__construct($id, $data, $queue);
     $this->exception = $exception;
 }
Beispiel #2
0
 /**
  * @param int                 $id
  * @param string              $data
  * @param int                 $priority
  * @param int                 $delay
  * @param string              $tubeName
  * @param JobControlInterface $queue
  */
 public function __construct($id, $data, $priority, $delay, $tubeName, JobControlInterface $queue)
 {
     parent::__construct($id, $data, $queue);
     $this->stats = new JobStats(array('id' => $id, 'tube' => $tubeName));
     $this->setPriority($priority);
     $this->setDelay($delay);
     $this->created = new Carbon();
 }