File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,11 @@ class User extends LazyResource
27
27
*/
28
28
protected $ _contact_info ;
29
29
30
+ /**
31
+ * @var UserStatistics
32
+ */
33
+ protected $ _user_statistics ;
34
+
30
35
/**
31
36
* @var Loans
32
37
*/
@@ -96,6 +101,14 @@ public function getContactInfo()
96
101
return $ this ->init ()->_contact_info ;
97
102
}
98
103
104
+ /**
105
+ * Get the user's statistics info.
106
+ */
107
+ public function getStatistics ()
108
+ {
109
+ return $ this ->init ()->_user_statistics ;
110
+ }
111
+
99
112
/**
100
113
* Save the user
101
114
*
@@ -128,6 +141,7 @@ protected function onData($data)
128
141
{
129
142
$ this ->_identifiers = UserIdentifiers::make ($ this ->client , $ data );
130
143
$ this ->_contact_info = ContactInfo::make ($ this ->client , $ data ->contact_info );
144
+ $ this ->_user_statistics = UserStatistics::make ($ this ->client , $ data ->user_statistic );
131
145
}
132
146
133
147
/**
You can’t perform that action at this time.
0 commit comments