update msgphp bundles to 0.10

This commit is contained in:
Roland Franssen
2019-03-27 14:34:22 +01:00
parent bce79fc5f0
commit 3be0907f47
8 changed files with 19 additions and 18 deletions
@@ -0,0 +1,26 @@
<?php
namespace App\Entity\User;
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;
}
}