@@ 38-68 (lines=31) @@ | ||
35 | * |
|
36 | * @return Builder |
|
37 | */ |
|
38 | public static function confirmationEvent( |
|
39 | $sequenceId, |
|
40 | $userId, |
|
41 | $timestamp = null, |
|
42 | $isEmailConfirmed = null, |
|
43 | $idPhoneConfirmed = null |
|
44 | ) { |
|
45 | $builder = new self('confirmation', $sequenceId); |
|
46 | if ($timestamp === null) { |
|
47 | $timestamp = time(); |
|
48 | } |
|
49 | ||
50 | return $builder->addUserData( |
|
51 | null, |
|
52 | $userId, |
|
53 | null, |
|
54 | null, |
|
55 | null, |
|
56 | null, |
|
57 | null, |
|
58 | null, |
|
59 | null, |
|
60 | null, |
|
61 | null, |
|
62 | null, |
|
63 | $timestamp, |
|
64 | $isEmailConfirmed, |
|
65 | $idPhoneConfirmed, |
|
66 | null |
|
67 | ); |
|
68 | } |
|
69 | ||
70 | /** |
|
71 | * Returns builder for login event |
|
@@ 81-111 (lines=31) @@ | ||
78 | * |
|
79 | * @return Builder |
|
80 | */ |
|
81 | public static function loginEvent( |
|
82 | $sequenceId, |
|
83 | $userId, |
|
84 | $timestamp = null, |
|
85 | $email = null, |
|
86 | $failed = null |
|
87 | ) { |
|
88 | $builder = new self('login', $sequenceId); |
|
89 | if ($timestamp === null) { |
|
90 | $timestamp = time(); |
|
91 | } |
|
92 | ||
93 | return $builder->addUserData( |
|
94 | $email, |
|
95 | $userId, |
|
96 | null, |
|
97 | null, |
|
98 | null, |
|
99 | null, |
|
100 | null, |
|
101 | null, |
|
102 | null, |
|
103 | null, |
|
104 | null, |
|
105 | $timestamp, |
|
106 | null, |
|
107 | null, |
|
108 | null, |
|
109 | $failed |
|
110 | ); |
|
111 | } |
|
112 | ||
113 | /** |
|
114 | * Returns builder for registration event |