src/Entity/InvoiceDownloads.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\InvoiceDownloadsRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use DateTimeImmutable;
  6. /**
  7.  * @ORM\Entity(repositoryClass=InvoiceDownloadsRepository::class)
  8.  */
  9. class InvoiceDownloads
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $token;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity=Users::class, inversedBy="invoiceDownloads")
  23.      */
  24.     private $user;
  25.     /**
  26.      * @ORM\Column(type="datetime")
  27.      */
  28.     private $startDate;
  29.     /**
  30.      * @ORM\Column(type="datetime")
  31.      */
  32.     private $endDate;
  33.     /**
  34.      * @ORM\Column(type="string", length=255)
  35.      */
  36.     private $sentTo;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity=Establishments::class, inversedBy="invoiceDownloads")
  39.      */
  40.     private $establishment;
  41.     /**
  42.      * @ORM\Column(type="datetime_immutable")
  43.      */
  44.     private $createdAt;
  45.     /**
  46.      * @ORM\Column(type="boolean")
  47.      */
  48.     private $deleted false;
  49.     public function __construct()
  50.     {
  51.         $this->createdAt = new DateTimeImmutable();
  52.     }
  53.     public function getId(): ?int
  54.     {
  55.         return $this->id;
  56.     }
  57.     public function getToken(): ?string
  58.     {
  59.         return $this->token;
  60.     }
  61.     public function setToken(string $token): self
  62.     {
  63.         $this->token $token;
  64.         return $this;
  65.     }
  66.     public function getUser(): ?Users
  67.     {
  68.         return $this->user;
  69.     }
  70.     public function setUser(?Users $user): self
  71.     {
  72.         $this->user $user;
  73.         return $this;
  74.     }
  75.     public function getStartDate(): ?\DateTimeInterface
  76.     {
  77.         return $this->startDate;
  78.     }
  79.     public function setStartDate(\DateTimeInterface $startDate): self
  80.     {
  81.         $this->startDate $startDate;
  82.         return $this;
  83.     }
  84.     public function getEndDate(): ?\DateTimeInterface
  85.     {
  86.         return $this->endDate;
  87.     }
  88.     public function setEndDate(\DateTimeInterface $endDate): self
  89.     {
  90.         $this->endDate $endDate;
  91.         return $this;
  92.     }
  93.     public function getSentTo(): ?string
  94.     {
  95.         return $this->sentTo;
  96.     }
  97.     public function setSentTo(string $sentTo): self
  98.     {
  99.         $this->sentTo $sentTo;
  100.         return $this;
  101.     }
  102.     public function getEstablishment(): ?Establishments
  103.     {
  104.         return $this->establishment;
  105.     }
  106.     public function setEstablishment(?Establishments $establishment): self
  107.     {
  108.         $this->establishment $establishment;
  109.         return $this;
  110.     }
  111.     public function getCreatedAt(): ?\DateTimeImmutable
  112.     {
  113.         return $this->createdAt;
  114.     }
  115.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  116.     {
  117.         $this->createdAt $createdAt;
  118.         return $this;
  119.     }
  120.     public function isDeleted(): ?bool
  121.     {
  122.         return $this->deleted;
  123.     }
  124.     public function setDeleted(bool $deleted): self
  125.     {
  126.         $this->deleted $deleted;
  127.         return $this;
  128.     }
  129. }