X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FOpenWebAuthToken.php;h=cd80c3f62e3660f34051fcfd0998492b51fe4f14;hb=1342825401e6e9e079eeec212271046930e1f475;hp=7c14cd3046c24bcad7bd56d74c3e5f1111aa15f5;hpb=71ec84f6dc83f753fe80170cfdfd32d202850d90;p=friendica.git diff --git a/src/Model/OpenWebAuthToken.php b/src/Model/OpenWebAuthToken.php index 7c14cd3046..cd80c3f62e 100644 --- a/src/Model/OpenWebAuthToken.php +++ b/src/Model/OpenWebAuthToken.php @@ -1,8 +1,24 @@ . + * */ + namespace Friendica\Model; use Friendica\Database\DBA; @@ -16,12 +32,13 @@ class OpenWebAuthToken /** * Create an entry in the 'openwebauth-token' table. * - * @param string $type Verify type. - * @param int $uid The user ID. + * @param string $type Verify type. + * @param int $uid The user ID. * @param string $token * @param string $meta * * @return boolean + * @throws \Exception */ public static function create($type, $uid, $token, $meta) { @@ -38,11 +55,12 @@ class OpenWebAuthToken /** * Get the "meta" field of an entry in the openwebauth-token table. * - * @param string $type Verify type. - * @param int $uid The user ID. + * @param string $type Verify type. + * @param int $uid The user ID. * @param string $token * * @return string|boolean The meta enry or false if not found. + * @throws \Exception */ public static function getMeta($type, $uid, $token) { @@ -62,6 +80,7 @@ class OpenWebAuthToken * * @param string $type Verify type. * @param string $interval SQL compatible time interval + * @throws \Exception */ public static function purge($type, $interval) {