user having token

This commit is contained in:
Kayn Ty 2018-04-04 18:34:09 +02:00
commit 122de99a72

24
src/Entity/User/User.php Normal file
View File

@ -0,0 +1,24 @@
<?php
namespace App\Entity\User;
use MsgPhp\User\Entity\User as BaseUser;
use MsgPhp\User\UserIdInterface;
/**
* @final
*/
class User extends BaseUser
{
private $id;
public function __construct(UserIdInterface $id)
{
$this->id = $id;
}
public function getId(): UserIdInterface
{
return $this->id;
}
}