Exemplo n.º 1
0
 /**
  * @param AbstractEvent $event
  * @param string $expression
  */
 public function __construct(AbstractEvent $event, string $expression)
 {
     parent::__construct(self::CRON);
     $this->event = $event;
     $this->expression = $expression;
 }
Exemplo n.º 2
0
 /**
  * @param AbstractEvent $event
  * @param int $timestamp
  */
 public function __construct(AbstractEvent $event, int $timestamp)
 {
     parent::__construct(self::DELAYED);
     $this->event = $event;
     $this->timestamp = $timestamp;
 }
Exemplo n.º 3
0
 /**
  * @param AbstractEvent $event
  */
 public function __construct(AbstractEvent $event)
 {
     parent::__construct(self::BACKGROUND);
     $this->event = $event;
 }