src/Entity/BaseSite/Domain.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\BaseSite;
  3. use App\Entity\BaseEntity;
  4. use App\Entity\Shop\Shop\Shop;
  5. use App\Repository\BaseSite\DomainRepository;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
  9. #[ORM\Entity(repositoryClassDomainRepository::class)]
  10. class Domain extends BaseEntity
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\Column(type'guid'uniquetrue)]
  14.     #[ORM\GeneratedValue(strategy'CUSTOM')]
  15.     #[ORM\CustomIdGenerator(class: UuidGenerator::class)]
  16.     private ?string $id;
  17.     #[ORM\ManyToOne(inversedBy'domains')]
  18.     #[ORM\JoinColumn(nullablefalse)]
  19.     private ?Shop $shop null;
  20.     #[ORM\Column]
  21.     private ?bool $isConnected null;
  22.     #[ORM\Column(length255)]
  23.     private ?string $address null;
  24.     #[ORM\Column(length255)]
  25.     private ?string $ns1 null;
  26.     #[ORM\Column(length255)]
  27.     private ?string $ns2 null;
  28.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  29.     private ?\DateTimeInterface $validUntil null;
  30.     public function getId(): ?string
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getShop(): ?Shop
  35.     {
  36.         return $this->shop;
  37.     }
  38.     public function setShop(?Shop $shop): static
  39.     {
  40.         $this->shop $shop;
  41.         return $this;
  42.     }
  43.     public function isIsConnected(): ?bool
  44.     {
  45.         return $this->isConnected;
  46.     }
  47.     public function setIsConnected(bool $isConnected): static
  48.     {
  49.         $this->isConnected $isConnected;
  50.         return $this;
  51.     }
  52.     public function getAddress(): ?string
  53.     {
  54.         return $this->address;
  55.     }
  56.     public function setAddress(string $address): static
  57.     {
  58.         $this->address $address;
  59.         return $this;
  60.     }
  61.     public function getNs1(): ?string
  62.     {
  63.         return $this->ns1;
  64.     }
  65.     public function setNs1(string $ns1): static
  66.     {
  67.         $this->ns1 $ns1;
  68.         return $this;
  69.     }
  70.     public function getNs2(): ?string
  71.     {
  72.         return $this->ns2;
  73.     }
  74.     public function setNs2(string $ns2): static
  75.     {
  76.         $this->ns2 $ns2;
  77.         return $this;
  78.     }
  79.     public function getValidUntil(): ?\DateTimeInterface
  80.     {
  81.         return $this->validUntil;
  82.     }
  83.     public function setValidUntil(?\DateTimeInterface $validUntil): static
  84.     {
  85.         $this->validUntil $validUntil;
  86.         return $this;
  87.     }
  88. }