/** * @param AbstractEvent $event * @param int $timestamp * @return string */ public function addEvent(AbstractEvent $event, int $timestamp = 0) { $jobId = $this->generateUniqueId('jobid:' . $event->getEventName()); $jobId = sprintf('%s:%s', $event->getEventName(), $jobId); $job = new Job($event, $jobId, $timestamp); $job->startTime = $this->now(); $this->addJob($job); }
/** * @param string $recipient * @param string $subject * @param string $body */ public function __construct(string $recipient, string $subject, string $body) { parent::__construct(self::TYPE); $this->recipient = $recipient; $this->subject = $subject; $this->body = $body; }
/** * @param string $eventName self::* * @param string $key * @param int $value */ public function __construct(string $eventName, string $key, int $value = 1) { parent::__construct($eventName); $this->key = $key; $this->value = $value; }
/** * @param AbstractEvent $payload */ public function __construct(AbstractEvent $payload) { parent::__construct(self::PUSH); $this->payload = $payload; }
/** * @param string $command * @param OutputInterface $output */ public function __construct(string $command, OutputInterface $output = null) { parent::__construct(self::NAME); $this->command = $command; $this->output = $output; }
public function __construct() { parent::__construct(self::NAME); }
/** * @param string $eventName self::* * @param array $values */ public function __construct(string $eventName, array $values) { parent::__construct($eventName); $this->values = $values; }
/** * @param AuthenticationDataVO $authentication * @param string $eventName */ public function __construct(AuthenticationDataVO $authentication, string $eventName) { parent::__construct($eventName); $this->authenticationData = $authentication; }
/** * @param UserVO $authentication * @param string $eventName */ public function __construct(UserVO $authentication, string $eventName) { parent::__construct($eventName); $this->userVo = $authentication; }
/** * @param string $timingId */ public function __construct(string $timingId) { parent::__construct(self::TIMING_EVENT); $this->timingId = $timingId; }
/** * @param string $type * @param Job $job */ public function __construct(string $type, Job $job) { parent::__construct($type); $this->job = $job; }