Ejemplo n.º 1
0
 /**
  * @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);
 }
Ejemplo n.º 2
0
 /**
  * @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;
 }
Ejemplo n.º 3
0
 /**
  * @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;
 }
Ejemplo n.º 4
0
 /**
  * @param AbstractEvent $payload
  */
 public function __construct(AbstractEvent $payload)
 {
     parent::__construct(self::PUSH);
     $this->payload = $payload;
 }
Ejemplo n.º 5
0
 /**
  * @param string $command
  * @param OutputInterface $output
  */
 public function __construct(string $command, OutputInterface $output = null)
 {
     parent::__construct(self::NAME);
     $this->command = $command;
     $this->output = $output;
 }
Ejemplo n.º 6
0
 public function __construct()
 {
     parent::__construct(self::NAME);
 }
Ejemplo n.º 7
0
 /**
  * @param string $eventName self::*
  * @param array $values
  */
 public function __construct(string $eventName, array $values)
 {
     parent::__construct($eventName);
     $this->values = $values;
 }
Ejemplo n.º 8
0
 /**
  * @param AuthenticationDataVO $authentication
  * @param string $eventName
  */
 public function __construct(AuthenticationDataVO $authentication, string $eventName)
 {
     parent::__construct($eventName);
     $this->authenticationData = $authentication;
 }
Ejemplo n.º 9
0
 /**
  * @param UserVO $authentication
  * @param string $eventName
  */
 public function __construct(UserVO $authentication, string $eventName)
 {
     parent::__construct($eventName);
     $this->userVo = $authentication;
 }
Ejemplo n.º 10
0
 /**
  * @param string $timingId
  */
 public function __construct(string $timingId)
 {
     parent::__construct(self::TIMING_EVENT);
     $this->timingId = $timingId;
 }
Ejemplo n.º 11
0
 /**
  * @param string $type
  * @param Job $job
  */
 public function __construct(string $type, Job $job)
 {
     parent::__construct($type);
     $this->job = $job;
 }