mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-11 23:26:40 +03:00
Update MsgPHP user + EAV bundle to v0.2
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user