mirror of
https://github.com/symfony/recipes-contrib.git
synced 2026-09-12 23:56:29 +03:00
27 lines
448 B
PHP
27 lines
448 B
PHP
<?php
|
|
|
|
namespace App\Entity\User;
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
|
use MsgPhp\User\Entity\User as BaseUser;
|
|
use MsgPhp\User\UserIdInterface;
|
|
|
|
/**
|
|
* @ORM\Entity()
|
|
*/
|
|
class User extends BaseUser
|
|
{
|
|
/** @ORM\Id() @ORM\Column(type="msgphp_user_id") */
|
|
private $id;
|
|
|
|
public function __construct(UserIdInterface $id)
|
|
{
|
|
$this->id = $id;
|
|
}
|
|
|
|
public function getId(): UserIdInterface
|
|
{
|
|
return $this->id;
|
|
}
|
|
}
|