Add phpdoc gdpr properties

This commit is contained in:
Administrator
2018-05-27 01:29:51 +02:00
parent 80412f5807
commit 7312f62f40

View File

@ -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.');
}
}