From fd7e5013068c20d5dd6740953c249af221869df7 Mon Sep 17 00:00:00 2001 From: Jang Rush Date: Mon, 14 Dec 2020 16:01:19 +0800 Subject: [PATCH] docs: use FQN in Cloud.php PHPDoc blocks. --- src/LeanCloud/Engine/Cloud.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/LeanCloud/Engine/Cloud.php b/src/LeanCloud/Engine/Cloud.php index faab6eb..1210866 100644 --- a/src/LeanCloud/Engine/Cloud.php +++ b/src/LeanCloud/Engine/Cloud.php @@ -2,7 +2,6 @@ namespace LeanCloud\Engine; use LeanCloud\Client; -use LeanCloud\User; /** * Cloud functions and hooks repository @@ -244,7 +243,7 @@ public static function onInsight($func) { * * @param string $funcName Name of defined function * @param array $params Array of parameters passed to function - * @param User $user Request user + * @param \LeanCloud\User $user Request user * @param array $meta Optional parameters that will be passed to * user function * @return mixed @@ -309,8 +308,8 @@ public static function stop() { * * @param string $className Classname * @param string $hookName Hook name, e.g. beforeUpdate - * @param LeanObject $object The object of attached hook - * @param User $user Request user + * @param \LeanCloud\LeanObject $object The object of attached hook + * @param \LeanCloud\User $user Request user * @param array $meta Optional parameters that will be passed to * user function * @return mixed @@ -331,9 +330,10 @@ public static function runHook($className, $hookName, $object, /** * Run hook when a user logs in * - * @param User $user The user object that tries to login + * @param \LeanCloud\User $user The user object that tries to login * @param array $meta Optional parameters that will be passed to * user function + * @return mixed * @throws FunctionError * @see self::onLogin */ @@ -345,9 +345,10 @@ public static function runOnLogin($user, $meta=array()) { * Run hook when user verified by Email or SMS * * @param string $type Either "sms" or "email", case-sensitive - * @param User $user The verifying user + * @param \LeanCloud\User $user The verifying user * @param array $meta Optional parameters that will be passed to * user function + * @return mixed * @throws FunctionError * @see self::onVerified */