You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/LaunchDarkly/LDUser.php
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,25 @@
1
1
<?php
2
2
namespaceLaunchDarkly;
3
3
4
+
/**
5
+
* Contains specific attributes of a user browsing your site. The only mandatory property property is the key,
6
+
* which must uniquely identify each user. For authenticated users, this may be a username or e-mail address. For anonymous users,
7
+
* this could be an IP address or session ID.
8
+
*/
4
9
class LDUser {
5
10
protected$_key = null;
6
11
protected$_secondary = null;
7
12
protected$_ip = null;
8
13
protected$_country = null;
9
14
protected$_custom = [];
10
15
16
+
/**
17
+
* @param string $key Unique key for the user. For authenticated users, this may be a username or e-mail address. For anonymous users, this could be an IP address or session ID.
18
+
* @param string|null $secondary An optional secondary identifier
19
+
* @param string|null $ip The user's IP address (optional)
20
+
* @param string|null $country The user's country, as an ISO 3166-1 alpha-2 code (e.g. 'US') (optional)
21
+
* @param array $custom Other custom attributes that can be used to create custom rules
0 commit comments