1 | <?php |
||
10 | class Job |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * @var AbstractEvent |
||
15 | */ |
||
16 | public $event; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | public $jobId; |
||
22 | |||
23 | /** |
||
24 | * @var int |
||
25 | */ |
||
26 | public $timestamp; |
||
27 | |||
28 | /** |
||
29 | * @var int |
||
30 | */ |
||
31 | public $startTime; |
||
32 | |||
33 | /** |
||
34 | * @var int |
||
35 | */ |
||
36 | public $errorCounter = 0; |
||
37 | |||
38 | 8 | /** |
|
39 | * @param AbstractEvent $event |
||
40 | 8 | * @param string $jobId |
|
41 | 8 | * @param int $timestamp |
|
42 | 8 | */ |
|
43 | 8 | public function __construct(AbstractEvent $event, string $jobId, int $timestamp) |
|
49 | |||
50 | 3 | /** |
|
51 | * @return string |
||
52 | */ |
||
53 | public function getJobId() : string |
||
57 | |||
58 | 1 | /** |
|
59 | * @return int |
||
60 | */ |
||
61 | public function getTimestamp() : int |
||
65 | |||
66 | 3 | /** |
|
67 | * @return AbstractEvent |
||
68 | */ |
||
69 | public function getEvent() : AbstractEvent |
||
73 | |||
74 | 1 | /** |
|
75 | 1 | * @param int $timestamp |
|
76 | */ |
||
77 | public function setTimestamp(int $timestamp) |
||
81 | |||
82 | /** |
||
83 | * @return int |
||
84 | */ |
||
85 | public function getStartTime(): int |
||
89 | } |
||
90 |