-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEventDTO.php
52 lines (47 loc) · 1.14 KB
/
EventDTO.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
declare(strict_types=1);
namespace Abrouter\Client\DTO;
class EventDTO implements EventDTOInterface
{
/**
* @var BaseEventDTO
*/
private $event;
/**
* EventDTO constructor.
*
* @param string|null $temporaryUserId
* @param string|null $userId
* @param string $event
* @param string|null $tag
* @param string|null $referrer
* @param array|null $meta
* @param string|null $ip
* @param string|null $created_at
*/
public function __construct(
?string $temporaryUserId = null,
?string $userId = null,
string $event,
?string $tag = null,
?string $referrer = null,
?array $meta = null,
?string $ip = null,
?string $created_at = null
) {
$this->event = new BaseEventDTO(
$temporaryUserId,
$userId,
$event,
$tag,
$referrer,
$meta,
$ip,
$created_at
);
}
public function getBaseEventDTO(): BaseEventDTO
{
return $this->event;
}
}