22namespace LeanCloud \Engine ;
33
44use LeanCloud \Client ;
5- use LeanCloud \User ;
65
76/**
87 * Cloud functions and hooks repository
@@ -244,7 +243,7 @@ public static function onInsight($func) {
244243 *
245244 * @param string $funcName Name of defined function
246245 * @param array $params Array of parameters passed to function
247- * @param User $user Request user
246+ * @param \LeanCloud\ User $user Request user
248247 * @param array $meta Optional parameters that will be passed to
249248 * user function
250249 * @return mixed
@@ -309,8 +308,8 @@ public static function stop() {
309308 *
310309 * @param string $className Classname
311310 * @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
314313 * @param array $meta Optional parameters that will be passed to
315314 * user function
316315 * @return mixed
@@ -331,9 +330,10 @@ public static function runHook($className, $hookName, $object,
331330 /**
332331 * Run hook when a user logs in
333332 *
334- * @param User $user The user object that tries to login
333+ * @param \LeanCloud\ User $user The user object that tries to login
335334 * @param array $meta Optional parameters that will be passed to
336335 * user function
336+ * @return mixed
337337 * @throws FunctionError
338338 * @see self::onLogin
339339 */
@@ -345,9 +345,10 @@ public static function runOnLogin($user, $meta=array()) {
345345 * Run hook when user verified by Email or SMS
346346 *
347347 * @param string $type Either "sms" or "email", case-sensitive
348- * @param User $user The verifying user
348+ * @param \LeanCloud\ User $user The verifying user
349349 * @param array $meta Optional parameters that will be passed to
350350 * user function
351+ * @return mixed
351352 * @throws FunctionError
352353 * @see self::onVerified
353354 */
0 commit comments