Skip to content

Commit

Permalink
docs: use FQN in Cloud.php PHPDoc blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
weakish committed Dec 14, 2020
1 parent 1d4917b commit fd7e501
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/LeanCloud/Engine/Cloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
namespace LeanCloud\Engine;

use LeanCloud\Client;
use LeanCloud\User;

/**
* Cloud functions and hooks repository
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
*/
Expand All @@ -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
*/
Expand Down

0 comments on commit fd7e501

Please sign in to comment.