<?php
namespace App\Entity;
use App\Repository\DistributorClinicsRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: DistributorClinicsRepository::class)]
class DistributorClinics
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\ManyToOne(targetEntity: Distributors::class, inversedBy: 'distributorClinics')]
private $distributor;
#[ORM\ManyToOne(targetEntity: Clinics::class, inversedBy: 'distributorClinics')]
private $clinic;
#[ORM\Column(type: 'boolean')]
private $isActive;
#[ORM\Column(type: 'string', length: 255)]
private $clientId;
#[ORM\Column(type: 'datetime')]
private $modified;
#[ORM\Column(type: 'datetime')]
private $created;
#[ORM\Column(type: 'boolean', nullable: true)]
private $isIgnored;
public function __construct()
{
$this->setModified(new \DateTime());
if ($this->getCreated() == null) {
$this->setCreated(new \DateTime());
}
}
public function getId(): ?int
{
return $this->id;
}
public function getDistributor(): ?Distributors
{
return $this->distributor;
}
public function setDistributor(?Distributors $distributor): self
{
$this->distributor = $distributor;
return $this;
}
public function getClinic(): ?Clinics
{
return $this->clinic;
}
public function setClinic(?Clinics $clinic): self
{
$this->clinic = $clinic;
return $this;
}
public function getIsActive(): ?bool
{
return $this->isActive;
}
public function setIsActive(bool $isActive): self
{
$this->isActive = $isActive;
return $this;
}
public function getClientId(): ?string
{
return $this->clientId;
}
public function setClientId(string $clientId): self
{
$this->clientId = $clientId;
return $this;
}
public function getModified(): ?\DateTimeInterface
{
return $this->modified;
}
public function setModified(\DateTimeInterface $modified): self
{
$this->modified = $modified;
return $this;
}
public function getCreated(): ?\DateTimeInterface
{
return $this->created;
}
public function setCreated(\DateTimeInterface $created): self
{
$this->created = $created;
return $this;
}
public function getIsIgnored(): ?bool
{
return $this->isIgnored;
}
public function setIsIgnored(?bool $isIgnored): self
{
$this->isIgnored = $isIgnored;
return $this;
}
}