cleanup code

This commit is contained in:
Artem Vasilev 2024-03-11 00:17:23 +03:00
parent 0d9b10ef8b
commit b3da305166

View File

@ -11,42 +11,11 @@ namespace Webmasterskaya\Component\OauthServer\Administrator\Table;
use Joomla\CMS\Event\AbstractEvent; use Joomla\CMS\Event\AbstractEvent;
use Joomla\CMS\Language\Text; use Joomla\CMS\Language\Text;
use Joomla\Database\DatabaseDriver;
\defined('_JEXEC') or die; \defined('_JEXEC') or die;
trait RevokedTableTrait trait RevokedTableTrait
{ {
/**
* @var string
* @since version
* @noinspection PhpMissingFieldTypeInspection
*/
protected $_tbl = '';
/**
* @var string
* @since version
* @noinspection PhpMissingFieldTypeInspection
*/
protected $_tbl_key = '';
/**
* @var array
* @since version
* @noinspection PhpMissingFieldTypeInspection
*/
protected $_tbl_keys = [];
/**
* @var DatabaseDriver
* @since version
* @noinspection PhpMissingFieldTypeInspection
*/
protected $_db;
abstract public function getDbo();
public function revoke($pks = null): bool public function revoke($pks = null): bool
{ {
// Pre-processing by observers // Pre-processing by observers
@ -154,6 +123,8 @@ trait RevokedTableTrait
return true; return true;
} }
abstract public function getDbo();
abstract public function getDispatcher(); abstract public function getDispatcher();
abstract public function setError($error); abstract public function setError($error);