1 | <?php |
||
17 | final class Event |
||
18 | { |
||
19 | private $event; |
||
20 | private $id; |
||
21 | private $timestamp; |
||
22 | private $eventDate; |
||
23 | private $tags; |
||
24 | private $url; |
||
25 | private $severity; |
||
26 | private $envelope; |
||
27 | private $deliveryStatus; |
||
28 | private $campaigns; |
||
29 | private $ip; |
||
30 | private $clientInfo; |
||
31 | private $reason; |
||
32 | private $userVariables; |
||
33 | private $flags; |
||
34 | private $routes; |
||
35 | private $message; |
||
36 | private $recipient; |
||
37 | private $geolocation; |
||
38 | private $storage; |
||
39 | private $method; |
||
40 | |||
41 | 2 | private function __construct() |
|
44 | |||
45 | 2 | public static function create(array $data): self |
|
72 | |||
73 | 1 | public function getEvent(): string |
|
77 | |||
78 | 1 | public function getId(): string |
|
82 | |||
83 | public function getTimestamp(): int |
||
87 | |||
88 | /** |
||
89 | * A \DateTimeImmutable representation of $timestamp. |
||
90 | */ |
||
91 | public function getEventDate(): \DateTimeImmutable |
||
95 | |||
96 | /** |
||
97 | * @return string[] |
||
98 | */ |
||
99 | public function getTags(): array |
||
103 | |||
104 | public function getUrl(): string |
||
108 | |||
109 | public function getSeverity(): string |
||
113 | |||
114 | public function getEnvelope(): array |
||
118 | |||
119 | public function getDeliveryStatus(): array |
||
123 | |||
124 | /** |
||
125 | * @return string[] |
||
126 | */ |
||
127 | public function getCampaigns(): array |
||
131 | |||
132 | public function getIp(): string |
||
136 | |||
137 | public function getClientInfo(): array |
||
141 | |||
142 | public function getReason(): string |
||
146 | |||
147 | public function getUserVariables(): array |
||
151 | |||
152 | /** |
||
153 | * key=>bool. |
||
154 | */ |
||
155 | public function getFlags(): array |
||
159 | |||
160 | /** |
||
161 | * multi dimensions. |
||
162 | */ |
||
163 | public function getRoutes(): array |
||
167 | |||
168 | /** |
||
169 | * multi dimensions. |
||
170 | */ |
||
171 | public function getMessage(): array |
||
175 | |||
176 | public function getRecipient(): string |
||
180 | |||
181 | public function getGeolocation(): array |
||
185 | |||
186 | public function getStorage(): array |
||
190 | |||
191 | public function getMethod(): string |
||
195 | } |
||
196 |