<?php
namespace App\Entity\Invoice;
use Gedmo\Mapping\Annotation as Gedmo;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\Collection;
use Doctrine\Common\Collections\ArrayCollection;
/**
* invoice_dmc_out
*
* @ORM\Table(name="invoice_dmc_out")
* @ORM\Entity()
*/
class InvoiceDmcOut
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var Invoice
*
* @ORM\ManyToOne(targetEntity="\App\Entity\Invoice\Invoice", inversedBy="lines")
* @ORM\JoinColumn(name="invoice_id", referencedColumnName="id", onDelete="SET NULL")
*/
private $invoice;
/**
* @ORM\Column(type="string", length=255)
*/
protected $filename;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set filename
*
* @param string $filename
* @return InvoiceDmcIn
*/
public function setFilename($filename)
{
$this->filename = $filename;
return $this;
}
/**
* Get filename
*
* @return string
*/
public function getFilename()
{
return $this->filename;
}
/**
* Set invoice
*
* @param \App\Entity\Invoice\Invoice
* @return InvoiceLine
*/
public function setInvoice(\App\Entity\Invoice\Invoice $invoice = null)
{
$this->invoice = $invoice;
return $this;
}
/**
* Get invoice
*
* @return \App\Entity\Invoice\Invoice
*/
public function getInvoice()
{
return $this->invoice;
}
}