src/Entity/EmailInvoice.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\EmailInvoiceRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=EmailInvoiceRepository::class)
  8.  */
  9. class EmailInvoice
  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=Invoice::class, inversedBy="emailInvoices")
  23.      * @ORM\JoinColumn(nullable=false)
  24.      */
  25.     private $invoice;
  26.     /**
  27.      * @ORM\ManyToOne(targetEntity=Users::class, inversedBy="emailInvoices")
  28.      * @ORM\JoinColumn(nullable=false)
  29.      */
  30.     private $addedBy;
  31.     /**
  32.      * @ORM\Column(type="integer")
  33.      */
  34.     private $opens 0;
  35.     /**
  36.      * @ORM\Column(type="datetime")
  37.      */
  38.     private $createdAt;
  39.     /**
  40.      * @ORM\Column(type="boolean")
  41.      */
  42.     private $deleted false;
  43.     public function __construct()
  44.     {
  45.         $this->createdAt = New \DateTime();
  46.     }
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function getToken(): ?string
  52.     {
  53.         return $this->token;
  54.     }
  55.     public function setToken(string $token): self
  56.     {
  57.         $this->token $token;
  58.         return $this;
  59.     }
  60.     public function getInvoice(): ?Invoice
  61.     {
  62.         return $this->invoice;
  63.     }
  64.     public function setInvoice(?Invoice $invoice): self
  65.     {
  66.         $this->invoice $invoice;
  67.         return $this;
  68.     }
  69.     public function getAddedBy(): ?Users
  70.     {
  71.         return $this->addedBy;
  72.     }
  73.     public function setAddedBy(?Users $addedBy): self
  74.     {
  75.         $this->addedBy $addedBy;
  76.         return $this;
  77.     }
  78.     public function getOpens(): ?int
  79.     {
  80.         return $this->opens;
  81.     }
  82.     public function setOpens(int $opens): self
  83.     {
  84.         $this->opens $opens;
  85.         return $this;
  86.     }
  87.     public function getCreatedAt(): ?\DateTimeInterface
  88.     {
  89.         return $this->createdAt;
  90.     }
  91.     public function setCreatedAt(\DateTimeInterface $createdAt): self
  92.     {
  93.         $this->createdAt $createdAt;
  94.         return $this;
  95.     }
  96.     public function isDeleted(): ?bool
  97.     {
  98.         return $this->deleted;
  99.     }
  100.     public function setDeleted(bool $deleted): self
  101.     {
  102.         $this->deleted $deleted;
  103.         return $this;
  104.     }
  105. }