src/Entity/EstablishmentDateVerified.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EstablishmentDateVerifiedRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=EstablishmentDateVerifiedRepository::class)
  7.  */
  8. class EstablishmentDateVerified
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="datetime")
  18.      */
  19.     private $date;
  20.     /**
  21.      * @ORM\Column(type="boolean")
  22.      */
  23.     private $verified false;
  24.     /**
  25.      * @ORM\Column(type="string", length=255, nullable=true)
  26.      */
  27.     private $comment null;
  28.     /**
  29.      * @ORM\ManyToOne(targetEntity=Establishments::class, inversedBy="establishmentDateVerifieds")
  30.      * @ORM\JoinColumn(nullable=false)
  31.      */
  32.     private $establishment;
  33.     public function __construct()
  34.     {
  35.         $this->date = new \DateTime();
  36.     }
  37.     public function getId(): ?int
  38.     {
  39.         return $this->id;
  40.     }
  41.     public function getDate(): ?\DateTimeInterface
  42.     {
  43.         return $this->date;
  44.     }
  45.     public function setDate(\DateTimeInterface $date): self
  46.     {
  47.         $this->date $date;
  48.         return $this;
  49.     }
  50.     public function isVerified(): ?bool
  51.     {
  52.         return $this->verified;
  53.     }
  54.     public function setVerified(bool $verified): self
  55.     {
  56.         $this->verified $verified;
  57.         return $this;
  58.     }
  59.     public function getComment(): ?string
  60.     {
  61.         return $this->comment;
  62.     }
  63.     public function setComment(?string $comment): self
  64.     {
  65.         $this->comment $comment;
  66.         return $this;
  67.     }
  68.     public function getEstablishment(): ?Establishments
  69.     {
  70.         return $this->establishment;
  71.     }
  72.     public function setEstablishment(?Establishments $establishment): self
  73.     {
  74.         $this->establishment $establishment;
  75.         return $this;
  76.     }
  77. }