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