for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BrainExe\Core\MessageQueue;
use BrainExe\Core\EventDispatcher\AbstractEvent;
/**
* @api can be used by other components
*/
class Job
{
* @var AbstractEvent
public $event;
* @var string
public $jobId;
* @var int
public $timestamp;
public $startTime;
public $errorCounter = 0;
* @param AbstractEvent $event
* @param string $jobId
* @param int $timestamp
public function __construct(AbstractEvent $event, string $jobId, int $timestamp)
$this->event = $event;
$this->jobId = $jobId;
$this->timestamp = $timestamp;
}
* @return string
public function getJobId() : string
return $this->jobId;
* @return int
public function getTimestamp() : int
return $this->timestamp;
* @return AbstractEvent
public function getEvent() : AbstractEvent
return $this->event;
public function setTimestamp(int $timestamp)
public function getStartTime(): int
return $this->startTime;