@@ -8,21 +8,21 @@ final class SteamUserDto
8
8
{
9
9
private function __construct (
10
10
private readonly string $ steamId ,
11
- private readonly int $ communityVisibilityState ,
12
- private readonly int $ profileState ,
13
- private readonly string $ personaName ,
14
- private readonly int $ commentPermission ,
15
- private readonly string $ profileUrl ,
16
- private readonly string $ avatar ,
17
- private readonly string $ avatarMedium ,
18
- private readonly string $ avatarFull ,
19
- private readonly string $ avatarHash ,
20
- private readonly int $ lastLogoff ,
21
- private readonly int $ personaState ,
22
- private readonly string $ primaryClanId ,
23
- private readonly int $ timeCreated ,
24
- private readonly int $ personaStateFlags ,
25
- private readonly string $ locCountryCode ,
11
+ private readonly ? int $ communityVisibilityState ,
12
+ private readonly ? int $ profileState ,
13
+ private readonly ? string $ personaName ,
14
+ private readonly ? int $ commentPermission ,
15
+ private readonly ? string $ profileUrl ,
16
+ private readonly ? string $ avatar ,
17
+ private readonly ? string $ avatarMedium ,
18
+ private readonly ? string $ avatarFull ,
19
+ private readonly ? string $ avatarHash ,
20
+ private readonly ? int $ lastLogoff ,
21
+ private readonly ? int $ personaState ,
22
+ private readonly ? string $ primaryClanId ,
23
+ private readonly ? int $ timeCreated ,
24
+ private readonly ? int $ personaStateFlags ,
25
+ private readonly ? string $ locCountryCode ,
26
26
private readonly ?int $ playerLevel ,
27
27
) {
28
28
}
@@ -31,21 +31,21 @@ public static function create(array $data): self
31
31
{
32
32
return new self (
33
33
steamId: $ data ['steamid ' ],
34
- communityVisibilityState: $ data ['communityvisibilitystate ' ],
35
- profileState: $ data ['profilestate ' ],
36
- personaName: $ data ['personaname ' ],
37
- commentPermission: $ data ['commentpermission ' ],
38
- profileUrl: $ data ['profileurl ' ],
39
- avatar: $ data ['avatar ' ],
40
- avatarMedium: $ data ['avatarmedium ' ],
41
- avatarFull: $ data ['avatarfull ' ],
42
- avatarHash: $ data ['avatarhash ' ],
43
- lastLogoff: $ data ['lastlogoff ' ],
44
- personaState: $ data ['personastate ' ],
45
- primaryClanId: $ data ['primaryclanid ' ],
46
- timeCreated: $ data ['timecreated ' ],
47
- personaStateFlags: $ data ['personastateflags ' ],
48
- locCountryCode: $ data ['loccountrycode ' ],
34
+ communityVisibilityState: $ data ['communityvisibilitystate ' ] ?? null ,
35
+ profileState: $ data ['profilestate ' ] ?? null ,
36
+ personaName: $ data ['personaname ' ] ?? null ,
37
+ commentPermission: $ data ['commentpermission ' ] ?? null ,
38
+ profileUrl: $ data ['profileurl ' ] ?? null ,
39
+ avatar: $ data ['avatar ' ] ?? null ,
40
+ avatarMedium: $ data ['avatarmedium ' ] ?? null ,
41
+ avatarFull: $ data ['avatarfull ' ] ?? null ,
42
+ avatarHash: $ data ['avatarhash ' ] ?? null ,
43
+ lastLogoff: $ data ['lastlogoff ' ] ?? null ,
44
+ personaState: $ data ['personastate ' ] ?? null ,
45
+ primaryClanId: $ data ['primaryclanid ' ] ?? null ,
46
+ timeCreated: $ data ['timecreated ' ] ?? null ,
47
+ personaStateFlags: $ data ['personastateflags ' ] ?? null ,
48
+ locCountryCode: $ data ['loccountrycode ' ] ?? null ,
49
49
playerLevel: $ data ['player_level ' ] ?? null ,
50
50
);
51
51
}
@@ -55,77 +55,77 @@ public function getSteamId(): string
55
55
return $ this ->steamId ;
56
56
}
57
57
58
- public function getCommunityVisibilityState (): int
58
+ public function getCommunityVisibilityState (): ? int
59
59
{
60
60
return $ this ->communityVisibilityState ;
61
61
}
62
62
63
- public function getProfileState (): int
63
+ public function getProfileState (): ? int
64
64
{
65
65
return $ this ->profileState ;
66
66
}
67
67
68
- public function getPersonaName (): string
68
+ public function getPersonaName (): ? string
69
69
{
70
70
return $ this ->personaName ;
71
71
}
72
72
73
- public function getCommentPermission (): int
73
+ public function getCommentPermission (): ? int
74
74
{
75
75
return $ this ->commentPermission ;
76
76
}
77
77
78
- public function getProfileUrl (): string
78
+ public function getProfileUrl (): ? string
79
79
{
80
80
return $ this ->profileUrl ;
81
81
}
82
82
83
- public function getAvatar (): string
83
+ public function getAvatar (): ? string
84
84
{
85
85
return $ this ->avatar ;
86
86
}
87
87
88
- public function getAvatarMedium (): string
88
+ public function getAvatarMedium (): ? string
89
89
{
90
90
return $ this ->avatarMedium ;
91
91
}
92
92
93
- public function getAvatarFull (): string
93
+ public function getAvatarFull (): ? string
94
94
{
95
95
return $ this ->avatarFull ;
96
96
}
97
97
98
- public function getAvatarHash (): string
98
+ public function getAvatarHash (): ? string
99
99
{
100
100
return $ this ->avatarHash ;
101
101
}
102
102
103
- public function getLastLogoff (): int
103
+ public function getLastLogoff (): ? int
104
104
{
105
105
return $ this ->lastLogoff ;
106
106
}
107
107
108
- public function getPersonaState (): int
108
+ public function getPersonaState (): ? int
109
109
{
110
110
return $ this ->personaState ;
111
111
}
112
112
113
- public function getPrimaryClanId (): string
113
+ public function getPrimaryClanId (): ? string
114
114
{
115
115
return $ this ->primaryClanId ;
116
116
}
117
117
118
- public function getTimeCreated (): int
118
+ public function getTimeCreated (): ? int
119
119
{
120
120
return $ this ->timeCreated ;
121
121
}
122
122
123
- public function getPersonaStateFlags (): int
123
+ public function getPersonaStateFlags (): ? int
124
124
{
125
125
return $ this ->personaStateFlags ;
126
126
}
127
127
128
- public function getLocCountryCode (): string
128
+ public function getLocCountryCode (): ? string
129
129
{
130
130
return $ this ->locCountryCode ;
131
131
}
0 commit comments