src/App/User/Domain/Model/ShopUser.php line 11

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\User\Domain\Model;
  4. use Ramsey\Uuid\Uuid;
  5. use Ramsey\Uuid\UuidInterface;
  6. use Sylius\Component\Core\Model\ShopUser as BaseShopUser;
  7. class ShopUser extends BaseShopUser
  8. {
  9.     private UuidInterface $uuid;
  10.     public function __construct()
  11.     {
  12.         parent::__construct();
  13.         $this->uuid Uuid::uuid4();
  14.     }
  15.     public function getUuid() : UuidInterface
  16.     {
  17.         return $this->uuid;
  18.     }
  19. }