<?php
namespace App\Entity;
use App\Repository\EstablishmentDateVerifiedRepository;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=EstablishmentDateVerifiedRepository::class)
*/
class EstablishmentDateVerified
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="datetime")
*/
private $date;
/**
* @ORM\Column(type="boolean")
*/
private $verified = false;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $comment = null;
/**
* @ORM\ManyToOne(targetEntity=Establishments::class, inversedBy="establishmentDateVerifieds")
* @ORM\JoinColumn(nullable=false)
*/
private $establishment;
public function __construct()
{
$this->date = new \DateTime();
}
public function getId(): ?int
{
return $this->id;
}
public function getDate(): ?\DateTimeInterface
{
return $this->date;
}
public function setDate(\DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function isVerified(): ?bool
{
return $this->verified;
}
public function setVerified(bool $verified): self
{
$this->verified = $verified;
return $this;
}
public function getComment(): ?string
{
return $this->comment;
}
public function setComment(?string $comment): self
{
$this->comment = $comment;
return $this;
}
public function getEstablishment(): ?Establishments
{
return $this->establishment;
}
public function setEstablishment(?Establishments $establishment): self
{
$this->establishment = $establishment;
return $this;
}
}