<?php
namespace App\Entity\BaseSite;
use App\Entity\BaseEntity;
use App\Entity\Shop\Shop\Shop;
use App\Repository\BaseSite\DomainRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
#[ORM\Entity(repositoryClass: DomainRepository::class)]
class Domain extends BaseEntity
{
#[ORM\Id]
#[ORM\Column(type: 'guid', unique: true)]
#[ORM\GeneratedValue(strategy: 'CUSTOM')]
#[ORM\CustomIdGenerator(class: UuidGenerator::class)]
private ?string $id;
#[ORM\ManyToOne(inversedBy: 'domains')]
#[ORM\JoinColumn(nullable: false)]
private ?Shop $shop = null;
#[ORM\Column]
private ?bool $isConnected = null;
#[ORM\Column(length: 255)]
private ?string $address = null;
#[ORM\Column(length: 255)]
private ?string $ns1 = null;
#[ORM\Column(length: 255)]
private ?string $ns2 = null;
#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]
private ?\DateTimeInterface $validUntil = null;
public function getId(): ?string
{
return $this->id;
}
public function getShop(): ?Shop
{
return $this->shop;
}
public function setShop(?Shop $shop): static
{
$this->shop = $shop;
return $this;
}
public function isIsConnected(): ?bool
{
return $this->isConnected;
}
public function setIsConnected(bool $isConnected): static
{
$this->isConnected = $isConnected;
return $this;
}
public function getAddress(): ?string
{
return $this->address;
}
public function setAddress(string $address): static
{
$this->address = $address;
return $this;
}
public function getNs1(): ?string
{
return $this->ns1;
}
public function setNs1(string $ns1): static
{
$this->ns1 = $ns1;
return $this;
}
public function getNs2(): ?string
{
return $this->ns2;
}
public function setNs2(string $ns2): static
{
$this->ns2 = $ns2;
return $this;
}
public function getValidUntil(): ?\DateTimeInterface
{
return $this->validUntil;
}
public function setValidUntil(?\DateTimeInterface $validUntil): static
{
$this->validUntil = $validUntil;
return $this;
}
}