/** * @param AbstractEvent $event * @param string $expression */ public function __construct(AbstractEvent $event, string $expression) { parent::__construct(self::CRON); $this->event = $event; $this->expression = $expression; }
/** * @param AbstractEvent $event * @param int $timestamp */ public function __construct(AbstractEvent $event, int $timestamp) { parent::__construct(self::DELAYED); $this->event = $event; $this->timestamp = $timestamp; }
/** * @param AbstractEvent $event */ public function __construct(AbstractEvent $event) { parent::__construct(self::BACKGROUND); $this->event = $event; }