src/Entity/InvoicesItems.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\InvoicesItemsRepository")
  6.  */
  7. class InvoicesItems
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="string", length=255, nullable=true)
  17.      */
  18.     private $name;
  19.     /**
  20.      * @ORM\Column(type="datetime")
  21.      */
  22.     private $deadline;
  23.  /**
  24.  * @ORM\ManyToOne(targetEntity="Invoices", inversedBy="items")
  25.  * @ORM\JoinColumn(name="invoice", referencedColumnName="id", onDelete="SET NULL")
  26.  */
  27.     private $invoice;
  28.     
  29.     public function getId(): ?int
  30.     {
  31.         return $this->id;
  32.     }
  33.     public function getName(): ?string
  34.     {
  35.         return $this->name;
  36.     }
  37.     public function setName(?string $name): self
  38.     {
  39.         $this->name $name;
  40.         return $this;
  41.     }
  42.     public function getDeadline(): ?\DateTimeInterface
  43.     {
  44.         return $this->deadline;
  45.     }
  46.     public function setDeadline(\DateTimeInterface $deadline): self
  47.     {
  48.         $this->deadline $deadline;
  49.         return $this;
  50.     }
  51.     public function setInvoice($invoice)
  52.     {
  53.         $this->invoice $invoice;
  54.         return $this;
  55.     }
  56.     public function getInvoice(): ?object
  57.     {
  58.         return $this->invoice;
  59.     }
  60. }