2
2
namespace LeanCloud \Engine ;
3
3
4
4
use LeanCloud \Client ;
5
- use LeanCloud \User ;
6
5
7
6
/**
8
7
* Cloud functions and hooks repository
@@ -244,7 +243,7 @@ public static function onInsight($func) {
244
243
*
245
244
* @param string $funcName Name of defined function
246
245
* @param array $params Array of parameters passed to function
247
- * @param User $user Request user
246
+ * @param \LeanCloud\ User $user Request user
248
247
* @param array $meta Optional parameters that will be passed to
249
248
* user function
250
249
* @return mixed
@@ -309,8 +308,8 @@ public static function stop() {
309
308
*
310
309
* @param string $className Classname
311
310
* @param string $hookName Hook name, e.g. beforeUpdate
312
- * @param LeanObject $object The object of attached hook
313
- * @param User $user Request user
311
+ * @param \LeanCloud\ LeanObject $object The object of attached hook
312
+ * @param \LeanCloud\ User $user Request user
314
313
* @param array $meta Optional parameters that will be passed to
315
314
* user function
316
315
* @return mixed
@@ -331,9 +330,10 @@ public static function runHook($className, $hookName, $object,
331
330
/**
332
331
* Run hook when a user logs in
333
332
*
334
- * @param User $user The user object that tries to login
333
+ * @param \LeanCloud\ User $user The user object that tries to login
335
334
* @param array $meta Optional parameters that will be passed to
336
335
* user function
336
+ * @return mixed
337
337
* @throws FunctionError
338
338
* @see self::onLogin
339
339
*/
@@ -345,9 +345,10 @@ public static function runOnLogin($user, $meta=array()) {
345
345
* Run hook when user verified by Email or SMS
346
346
*
347
347
* @param string $type Either "sms" or "email", case-sensitive
348
- * @param User $user The verifying user
348
+ * @param \LeanCloud\ User $user The verifying user
349
349
* @param array $meta Optional parameters that will be passed to
350
350
* user function
351
+ * @return mixed
351
352
* @throws FunctionError
352
353
* @see self::onVerified
353
354
*/
0 commit comments