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.19 " ,
3+ "version" : " 1.0.20 " ,
44 "description" : " Trophy PHP Library" ,
55 "keywords" : [
66 " trophy" ,
Original file line number Diff line number Diff line change @@ -20,9 +20,16 @@ class StreakResponse extends JsonSerializableType
2020 #[JsonProperty('streakHistory ' ), ArrayType([StreakResponseStreakHistoryItem::class])]
2121 public ?array $ streakHistory ;
2222
23+ /**
24+ * @var ?int $rank The user's rank across all users. Null if the user has no active streak.
25+ */
26+ #[JsonProperty('rank ' )]
27+ public ?int $ rank ;
28+
2329 /**
2430 * @param array{
2531 * streakHistory?: ?array<StreakResponseStreakHistoryItem>,
32+ * rank?: ?int,
2633 * length: int,
2734 * frequency: value-of<StreakFrequency>,
2835 * started?: ?string,
@@ -35,6 +42,7 @@ public function __construct(
3542 array $ values ,
3643 ) {
3744 $ this ->streakHistory = $ values ['streakHistory ' ] ?? null ;
45+ $ this ->rank = $ values ['rank ' ] ?? null ;
3846 $ this ->length = $ values ['length ' ];
3947 $ this ->frequency = $ values ['frequency ' ];
4048 $ this ->started = $ values ['started ' ] ?? null ;
You can’t perform that action at this time.
0 commit comments