src/Entity/Invoice/InvoiceFile.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Invoice;
  3. use Gedmo\Mapping\Annotation as Gedmo;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\Common\Collections\ArrayCollection;
  7. /**
  8.  * invoice_file
  9.  *
  10.  * @ORM\Table(name="invoice_file")
  11.  * @ORM\Entity()
  12.  */
  13. class InvoiceFile
  14. {
  15.     /**
  16.      * @var integer
  17.      *
  18.      * @ORM\Column(name="id", type="integer", nullable=false)
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="IDENTITY")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var Invoice
  25.      *
  26.      * @ORM\ManyToOne(targetEntity="\App\Entity\Invoice\Invoice", inversedBy="lines")
  27.      * @ORM\JoinColumn(name="invoice_id", referencedColumnName="id", onDelete="SET NULL")
  28.      */
  29.     private $invoice;
  30.     /**
  31.      * @ORM\Column(type="string", length=255)
  32.      */
  33.     protected $filename;
  34.     /**
  35.      * Get id
  36.      *
  37.      * @return integer 
  38.      */
  39.     public function getId()
  40.     {
  41.         return $this->id;
  42.     }
  43.     /**
  44.      * Set filename
  45.      *
  46.      * @param string $filename
  47.      * @return InvoiceDmcIn
  48.      */
  49.     public function setFilename($filename)
  50.     {
  51.         $this->filename $filename;
  52.         return $this;
  53.     }
  54.     /**
  55.      * Get filename
  56.      *
  57.      * @return string 
  58.      */
  59.     public function getFilename()
  60.     {
  61.         return $this->filename;
  62.     }
  63.     /**
  64.      * Set invoice
  65.      *
  66.      * @param \App\Entity\Invoice\Invoice
  67.      * @return InvoiceLine
  68.      */
  69.     public function setInvoice(\App\Entity\Invoice\Invoice $invoice null)
  70.     {
  71.         $this->invoice $invoice;
  72.         return $this;
  73.     }
  74.     /**
  75.      * Get invoice
  76.      *
  77.      * @return \App\Entity\Invoice\Invoice
  78.      */
  79.     public function getInvoice()
  80.     {
  81.         return $this->invoice;
  82.     }
  83. }