From 41c3e8fa96b80d73c41e05ef84b832d7e9c5b789 Mon Sep 17 00:00:00 2001 From: Artem Vasilev Date: Mon, 11 Mar 2024 00:19:28 +0300 Subject: [PATCH] Refactoring doc block --- .../administrator/src/Table/AuthCodeTable.php | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/com_oauthserver/administrator/src/Table/AuthCodeTable.php b/com_oauthserver/administrator/src/Table/AuthCodeTable.php index efddbde..c0170a8 100644 --- a/com_oauthserver/administrator/src/Table/AuthCodeTable.php +++ b/com_oauthserver/administrator/src/Table/AuthCodeTable.php @@ -15,13 +15,13 @@ use Joomla\Database\DatabaseDriver; \defined('_JEXEC') or die; /** - * @property int $id - * @property string $identifier - * @property \DateTimeImmutable|\DateTime|string $expiry - * @property int|null $user_id - * @property string|array|null $scopes - * @property int $revoked - * @property int $client_id + * @property int $id + * @property string $identifier + * @property \DateTimeInterface|string $expiry + * @property int|null $userId + * @property string|array $scopes + * @property int $clientId + * @property bool|int $revoked * * @since version */ @@ -48,5 +48,8 @@ class AuthCodeTable extends Table implements RevokedTableInterface public function __construct(DatabaseDriver $db) { parent::__construct('#__webmasterskaya_oauthserver_authorization_codes', 'id', $db); + + $this->setColumnAlias('client_id', 'clientId'); + $this->setColumnAlias('user_id', 'userId'); } }