src/Entity/WhitelabelDomain.php line 10

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\WhitelabelDomainRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Uid\Uuid;
  6. #[ORM\Entity(repositoryClassWhitelabelDomainRepository::class)]
  7. class WhitelabelDomain
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\Column(type'uuid'uniquetrue)]
  11.     private ?string $id null;
  12.     #[ORM\Column(length255)]
  13.     private ?string $domain null;
  14.     #[ORM\ManyToOne(inversedBy'whitelabelDomains')]
  15.     #[ORM\JoinColumn(nullablefalse)]
  16.     private ?Whitelabel $whitelabel null;
  17.     public function __construct()
  18.     {
  19.         $this->id Uuid::v4();
  20.     }
  21.     public function getId(): ?string
  22.     {
  23.         return $this->id;
  24.     }
  25.     public function getDomain(): ?string
  26.     {
  27.         return $this->domain;
  28.     }
  29.     public function setDomain(string $domain): static
  30.     {
  31.         $this->domain $domain;
  32.         return $this;
  33.     }
  34.     public function getWhitelabel(): ?Whitelabel
  35.     {
  36.         return $this->whitelabel;
  37.     }
  38.     public function setWhitelabel(?Whitelabel $whitelabel): static
  39.     {
  40.         $this->whitelabel $whitelabel;
  41.         return $this;
  42.     }
  43. }