@@ -89,7 +89,7 @@ public static function fromArray(Client $client, array $data)
8989 *
9090 * @return User
9191 */
92- public static function create (Client $ client , $ email , $ password , array $ params = [])
92+ public static function create (Client $ client , string $ email , string $ password , array $ params = [])
9393 {
9494 $ data = $ client ->users ()->create ($ email , $ password , $ params );
9595
@@ -102,7 +102,7 @@ public static function create(Client $client, $email, $password, array $params =
102102 *
103103 * @return void
104104 */
105- public function __construct ($ id = null , Client $ client = null )
105+ public function __construct (? int $ id = null , Client $ client = null )
106106 {
107107 $ this ->setClient ($ client );
108108 $ this ->setData ('id ' , $ id );
@@ -181,7 +181,7 @@ public function keys()
181181 *
182182 * @return Key
183183 */
184- public function createKey ($ title , $ key )
184+ public function createKey (string $ title , string $ key )
185185 {
186186 $ data = $ this ->client ->users ()->createKey ($ title , $ key );
187187
@@ -195,7 +195,7 @@ public function createKey($title, $key)
195195 *
196196 * @return Key
197197 */
198- public function createKeyForUser ($ user_id , $ title , $ key )
198+ public function createKeyForUser (int $ user_id , string $ title , string $ key )
199199 {
200200 $ data = $ this ->client ->users ()->createKeyForUser ($ user_id , $ title , $ key );
201201
@@ -207,7 +207,7 @@ public function createKeyForUser($user_id, $title, $key)
207207 *
208208 * @return bool
209209 */
210- public function removeKey ($ id )
210+ public function removeKey (int $ id )
211211 {
212212 $ this ->client ->users ()->removeKey ($ id );
213213
@@ -220,7 +220,7 @@ public function removeKey($id)
220220 *
221221 * @return User
222222 */
223- public function addToGroup ($ group_id , $ access_level )
223+ public function addToGroup (int $ group_id , int $ access_level )
224224 {
225225 $ group = new Group ($ group_id , $ this ->getClient ());
226226
@@ -232,7 +232,7 @@ public function addToGroup($group_id, $access_level)
232232 *
233233 * @return bool
234234 */
235- public function removeFromGroup ($ group_id )
235+ public function removeFromGroup (int $ group_id )
236236 {
237237 $ group = new Group ($ group_id , $ this ->getClient ());
238238
0 commit comments