File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " trophy/php" ,
3- "version" : " 1.0.14 " ,
3+ "version" : " 1.0.15 " ,
44 "description" : " Trophy PHP Library" ,
55 "keywords" : [
66 " trophy" ,
Original file line number Diff line number Diff line change 33namespace Trophy \Traits ;
44
55use Trophy \Core \Json \JsonProperty ;
6+ use Trophy \Core \Types \ArrayType ;
67
78/**
89 * An object with editable user fields.
@@ -27,6 +28,12 @@ trait UpdatedUser
2728 #[JsonProperty('tz ' )]
2829 public ?string $ tz ;
2930
31+ /**
32+ * @var ?array<string> $deviceTokens The user's device tokens, used for push notifications.
33+ */
34+ #[JsonProperty('deviceTokens ' ), ArrayType(['string ' ])]
35+ public ?array $ deviceTokens ;
36+
3037 /**
3138 * @var ?bool $subscribeToEmails Whether the user should receive Trophy-powered emails. Cannot be false if an email is provided.
3239 */
Original file line number Diff line number Diff line change 44
55use Trophy \Core \Json \JsonSerializableType ;
66use Trophy \Core \Json \JsonProperty ;
7+ use Trophy \Core \Types \ArrayType ;
78
89/**
910 * An object with editable user fields.
@@ -28,6 +29,12 @@ class UpdatedUser extends JsonSerializableType
2829 #[JsonProperty('tz ' )]
2930 public ?string $ tz ;
3031
32+ /**
33+ * @var ?array<string> $deviceTokens The user's device tokens, used for push notifications.
34+ */
35+ #[JsonProperty('deviceTokens ' ), ArrayType(['string ' ])]
36+ public ?array $ deviceTokens ;
37+
3138 /**
3239 * @var ?bool $subscribeToEmails Whether the user should receive Trophy-powered emails. Cannot be false if an email is provided.
3340 */
@@ -39,6 +46,7 @@ class UpdatedUser extends JsonSerializableType
3946 * email?: ?string,
4047 * name?: ?string,
4148 * tz?: ?string,
49+ * deviceTokens?: ?array<string>,
4250 * subscribeToEmails?: ?bool,
4351 * } $values
4452 */
@@ -48,6 +56,7 @@ public function __construct(
4856 $ this ->email = $ values ['email ' ] ?? null ;
4957 $ this ->name = $ values ['name ' ] ?? null ;
5058 $ this ->tz = $ values ['tz ' ] ?? null ;
59+ $ this ->deviceTokens = $ values ['deviceTokens ' ] ?? null ;
5160 $ this ->subscribeToEmails = $ values ['subscribeToEmails ' ] ?? null ;
5261 }
5362
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ class UpsertedUser extends JsonSerializableType
2525 * email?: ?string,
2626 * name?: ?string,
2727 * tz?: ?string,
28+ * deviceTokens?: ?array<string>,
2829 * subscribeToEmails?: ?bool,
2930 * } $values
3031 */
@@ -35,6 +36,7 @@ public function __construct(
3536 $ this ->email = $ values ['email ' ] ?? null ;
3637 $ this ->name = $ values ['name ' ] ?? null ;
3738 $ this ->tz = $ values ['tz ' ] ?? null ;
39+ $ this ->deviceTokens = $ values ['deviceTokens ' ] ?? null ;
3840 $ this ->subscribeToEmails = $ values ['subscribeToEmails ' ] ?? null ;
3941 }
4042
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ class User extends JsonSerializableType
4242 * email?: ?string,
4343 * name?: ?string,
4444 * tz?: ?string,
45+ * deviceTokens?: ?array<string>,
4546 * subscribeToEmails?: ?bool,
4647 * } $values
4748 */
@@ -55,6 +56,7 @@ public function __construct(
5556 $ this ->email = $ values ['email ' ] ?? null ;
5657 $ this ->name = $ values ['name ' ] ?? null ;
5758 $ this ->tz = $ values ['tz ' ] ?? null ;
59+ $ this ->deviceTokens = $ values ['deviceTokens ' ] ?? null ;
5860 $ this ->subscribeToEmails = $ values ['subscribeToEmails ' ] ?? null ;
5961 }
6062
You can’t perform that action at this time.
0 commit comments