1 | <?php |
||
13 | abstract class BaseEvent |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $type; |
||
19 | |||
20 | /** |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $apiKey; |
||
24 | |||
25 | /** |
||
26 | * @var string |
||
27 | */ |
||
28 | protected $userId; |
||
29 | |||
30 | /** |
||
31 | * @var string |
||
32 | */ |
||
33 | protected $sessionId; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | protected $ip; |
||
39 | |||
40 | /** |
||
41 | * @var \DateTime |
||
42 | */ |
||
43 | protected $time; |
||
44 | |||
45 | /** |
||
46 | * BaseEvent constructor. |
||
47 | */ |
||
48 | 36 | public function __construct() |
|
52 | |||
53 | /** |
||
54 | * @return string |
||
55 | */ |
||
56 | 16 | public function getType() |
|
60 | |||
61 | /** |
||
62 | * @return string |
||
63 | */ |
||
64 | 14 | public function getApiKey() |
|
68 | |||
69 | /** |
||
70 | * @param string $apiKey |
||
71 | * |
||
72 | * @return $this |
||
73 | */ |
||
74 | 14 | public function setApiKey($apiKey) |
|
80 | |||
81 | /** |
||
82 | * @return string |
||
83 | */ |
||
84 | 14 | public function getUserId() |
|
88 | |||
89 | /** |
||
90 | * @param string $userId |
||
91 | * |
||
92 | * @return $this |
||
93 | */ |
||
94 | 1 | public function setUserId($userId) |
|
100 | |||
101 | /** |
||
102 | * @return string |
||
103 | */ |
||
104 | 12 | public function getSessionId() |
|
108 | |||
109 | /** |
||
110 | * @param string $sessionId |
||
111 | * |
||
112 | * @return $this |
||
113 | */ |
||
114 | 1 | public function setSessionId($sessionId) |
|
120 | |||
121 | /** |
||
122 | * @return string |
||
123 | */ |
||
124 | 14 | public function getIp() |
|
128 | |||
129 | /** |
||
130 | * @param string $ip |
||
131 | * |
||
132 | * @return $this |
||
133 | */ |
||
134 | 1 | public function setIp($ip) |
|
140 | |||
141 | /** |
||
142 | * @return \DateTime |
||
143 | */ |
||
144 | 14 | public function getTime() |
|
148 | |||
149 | /** |
||
150 | * @param \DateTime $time |
||
151 | * |
||
152 | * @return $this |
||
153 | */ |
||
154 | 1 | public function setTime(DateTime $time) |
|
160 | } |
||
161 |