mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-13 08:06:26 +03:00
25 lines
352 B
PHP
25 lines
352 B
PHP
<?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;
|
|
}
|
|
}
|