mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
26 lines
510 B
PHP
26 lines
510 B
PHP
<?php
|
|
/**
|
|
* @author Alex Bilbie <hello@alexbilbie.com>
|
|
* @copyright Copyright (c) Alex Bilbie
|
|
* @license http://mit-license.org/
|
|
*
|
|
* @link https://github.com/thephpleague/oauth2-server
|
|
*/
|
|
|
|
namespace OAuth2ServerExamples\Entities;
|
|
|
|
use League\OAuth2\Server\Entities\UserEntityInterface;
|
|
|
|
class UserEntity implements UserEntityInterface
|
|
{
|
|
/**
|
|
* Return the user's identifier.
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function getIdentifier()
|
|
{
|
|
return 1;
|
|
}
|
|
}
|