Refactoring doc block

This commit is contained in:
Artem Vasilev 2024-03-11 00:19:28 +03:00
parent 9ac0b41ccf
commit 41c3e8fa96

View File

@ -15,13 +15,13 @@ use Joomla\Database\DatabaseDriver;
\defined('_JEXEC') or die; \defined('_JEXEC') or die;
/** /**
* @property int $id * @property int $id
* @property string $identifier * @property string $identifier
* @property \DateTimeImmutable|\DateTime|string $expiry * @property \DateTimeInterface|string $expiry
* @property int|null $user_id * @property int|null $userId
* @property string|array|null $scopes * @property string|array $scopes
* @property int $revoked * @property int $clientId
* @property int $client_id * @property bool|int $revoked
* *
* @since version * @since version
*/ */
@ -48,5 +48,8 @@ class AuthCodeTable extends Table implements RevokedTableInterface
public function __construct(DatabaseDriver $db) public function __construct(DatabaseDriver $db)
{ {
parent::__construct('#__webmasterskaya_oauthserver_authorization_codes', 'id', $db); parent::__construct('#__webmasterskaya_oauthserver_authorization_codes', 'id', $db);
$this->setColumnAlias('client_id', 'clientId');
$this->setColumnAlias('user_id', 'userId');
} }
} }