1 | <?php |
||
12 | abstract class EventBase extends Event |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $eventName; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $payload; |
||
23 | |||
24 | /** |
||
25 | * @var ModelBase |
||
26 | */ |
||
27 | protected $model; |
||
28 | |||
29 | /** |
||
30 | * @var int |
||
31 | */ |
||
32 | protected $attemptCount; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | protected $requestUuid; |
||
38 | |||
39 | /** |
||
40 | * EventBase constructor. |
||
41 | * @param string $eventName |
||
42 | * @param string $payload |
||
43 | * @param int $attemptCount |
||
44 | * @param string $requestUuid |
||
45 | */ |
||
46 | public function __construct($eventName, $payload, $attemptCount, $requestUuid) |
||
57 | |||
58 | /** |
||
59 | * @return string |
||
60 | */ |
||
61 | public function getEventName() |
||
65 | |||
66 | /** |
||
67 | * @return string |
||
68 | */ |
||
69 | public function getPayload() |
||
73 | |||
74 | /** |
||
75 | * @return int |
||
76 | */ |
||
77 | public function getAttemptCount() |
||
81 | |||
82 | /** |
||
83 | * @return string |
||
84 | */ |
||
85 | public function getRequestUuid() |
||
89 | |||
90 | /** |
||
91 | * @return ModelBase |
||
92 | */ |
||
93 | public function getModel() |
||
97 | |||
98 | /** |
||
99 | * @return string |
||
100 | */ |
||
101 | abstract protected function getClassModel(); |
||
102 | } |
||
103 |