src/Entity/BaseSite/Domain.php line 14

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