accounts/common/components/OAuth2/Entities/UserEntity.php

17 lines
359 B
PHP

<?php
declare(strict_types=1);
namespace common\components\OAuth2\Entities;
use League\OAuth2\Server\Entities\Traits\EntityTrait;
use League\OAuth2\Server\Entities\UserEntityInterface;
final class UserEntity implements UserEntityInterface {
use EntityTrait;
public function __construct(int $id) {
$this->identifier = (string)$id;
}
}