This repository has been archived on 2025-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
szurubooru/src/Models/Entities/TokenEntity.php

19 lines
279 B
PHP
Raw Normal View History

<?php
class TokenEntity extends AbstractEntity
{
public $userId;
public $token;
public $used;
public $expires;
public function getUser()
{
return UserModel::findById($this->userId);
}
public function setUser($user)
{
$this->userId = $user ? $user->id : null;
}
}