forked from projects/file-explorer
21 lines
341 B
PHP
21 lines
341 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Entity;
|
|
|
|
use League\OAuth2\Client\Provider\ResourceOwnerInterface;
|
|
|
|
class User implements ResourceOwnerInterface
|
|
{
|
|
private int $id;
|
|
|
|
public function getId(): int
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function toArray(): array
|
|
{
|
|
return ['id' => $this->id];
|
|
}
|
|
} |