diff --git a/src/User/Model/User.php b/src/User/Model/User.php index 7fc3771..b2c744e 100644 --- a/src/User/Model/User.php +++ b/src/User/Model/User.php @@ -46,6 +46,8 @@ use yii\web\IdentityInterface; * @property int $created_at * @property int $updated_at * @property int $last_login_at + * @property bool $gdpr_consent + * @property int $gdpr_consent_date * * Defined relations: * @property SocialNetworkAccount[] $socialNetworkAccounts @@ -69,6 +71,38 @@ class User extends ActiveRecord implements IdentityInterface */ protected $connectedAccounts; + /** + * {@inheritdoc} + */ + public static function tableName() + { + return '{{%user}}'; + } + + /** + * {@inheritdoc} + */ + public static function findIdentity($id) + { + return static::findOne($id); + } + + /** + * @return UserQuery + */ + public static function find() + { + return new UserQuery(static::class); + } + + /** + * {@inheritdoc} + */ + public static function findIdentityByAccessToken($token, $type = null) + { + throw new NotSupportedException('Method "' . __CLASS__ . '::' . __METHOD__ . '" is not implemented.'); + } + /** * {@inheritdoc} */ @@ -106,14 +140,6 @@ class User extends ActiveRecord implements IdentityInterface } } - /** - * {@inheritdoc} - */ - public static function tableName() - { - return '{{%user}}'; - } - /** * {@inheritdoc} */ @@ -222,14 +248,6 @@ class User extends ActiveRecord implements IdentityInterface return $this->getAttribute('auth_key'); } - /** - * {@inheritdoc} - */ - public static function findIdentity($id) - { - return static::findOne($id); - } - /** * @return bool whether is blocked or not */ @@ -296,20 +314,4 @@ class User extends ActiveRecord implements IdentityInterface return $this->connectedAccounts; } - - /** - * @return UserQuery - */ - public static function find() - { - return new UserQuery(static::class); - } - - /** - * {@inheritdoc} - */ - public static function findIdentityByAccessToken($token, $type = null) - { - throw new NotSupportedException('Method "' . __CLASS__ . '::' . __METHOD__ . '" is not implemented.'); - } }