<?php
namespace App\MDS\GreenPatioBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* CvrReservationInvoiceRec
*
* @ORM\Table(name="cvr_reservation_invoice_rec")
* @ORM\Entity(repositoryClass="App\MDS\GreenPatioBundle\Repository\CvrReservationInvoiceRecRepository")
*/
class CvrReservationInvoiceRec
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="master", type="string", length=255)
*/
private $master = 'master';
/**
* @var string
*
* @ORM\Column(name="number", type="string", length=255)
*/
private $number;
/**
* @var string
*
* @ORM\Column(name="prefix", type="string", length=255, nullable=true)
*/
private $prefix;
/**
* @var \DateTime
*
* @ORM\Column(name="dateAt", type="datetime")
*/
private $dateAt;
/**
* @var string
*
* @ORM\Column(name="type", type="string", length=255)
*/
private $type;
/**
* @var int
*
* @ORM\Column(name="reservationId", type="integer")
*/
private $reservationId;
/**
* @var string
*
* @ORM\Column(name="totalNet", type="string", length=255)
*/
private $totalNet;
/**
* @var string
*
* @ORM\Column(name="vat", type="text", nullable=true)
*/
private $vat;
/**
* @var string
*
* @ORM\Column(name="total", type="string", length=255, nullable=true)
*/
private $total;
/**
* @var string
*
* @ORM\Column(name="balance", type="string", length=255, nullable=true)
*/
private $balance;
/**
* @var int
*
* @ORM\Column(name="invoiceToRec", type="integer", nullable=true)
*/
private $invoiceToRec;
/**
* @var string
*
* @ORM\Column(name="client_name", type="string", length=255, nullable=true)
* Nombre del cliente
*/
private $clientName;
/**
* @var string
*
* @ORM\Column(name="client_address", type="string", length=255, nullable=true)
* Direccion del cliente
*/
private $clientAddress;
/**
* @var string
*
* @ORM\Column(name="client_document", type="string", length=255, nullable=true)
* NIF o CIF del cliente
*/
private $clientDocument;
/**
* @var string
*
* @ORM\Column(name="client_type", type="string", length=255, nullable=true)
* Tipo de cliente (cliente o proveedor). Usado para emitir facturas de comision a los proveedores
*/
private $clientType;
/**
* @var \DateTime
*
* @ORM\Column(name="createdAt", type="datetime")
*/
private $createdAt;
/**
* @var int
*
* @ORM\Column(name="createdId", type="integer")
*/
private $createdId;
/**
* @var \DateTime
*
* @ORM\Column(name="updatedAt", type="datetime")
*/
private $updatedAt;
/**
* @var int
*
* @ORM\Column(name="updatedId", type="integer")
*/
private $updatedId;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set master
*
* @param string $master
*
* @return CvrReservationInvoiceRec
*/
public function setMaster($master)
{
$this->master = $master;
return $this;
}
/**
* Get master
*
* @return string
*/
public function getMaster()
{
return $this->master;
}
/**
* Set number
*
* @param string $number
*
* @return CvrReservationInvoiceRec
*/
public function setNumber($number)
{
$this->number = $number;
return $this;
}
/**
* Get number
*
* @return string
*/
public function getNumber()
{
return $this->number;
}
/**
* Set prefix
*
* @param string $prefix
*
* @return CvrReservationInvoiceRec
*/
public function setPrefix($prefix)
{
$this->prefix = $prefix;
return $this;
}
/**
* Get prefix
*
* @return string
*/
public function getPrefix()
{
return $this->prefix;
}
/**
* Set dateAt
*
* @param \DateTime $dateAt
*
* @return CvrReservationInvoiceRec
*/
public function setDateAt($dateAt)
{
$this->dateAt = $dateAt;
return $this;
}
/**
* Get dateAt
*
* @return \DateTime
*/
public function getDateAt()
{
return $this->dateAt;
}
/**
* Set type
*
* @param string $type
*
* @return CvrReservationInvoiceRec
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* Get type
*
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Set reservationId
*
* @param integer $reservationId
*
* @return CvrReservationInvoiceRec
*/
public function setReservationId($reservationId)
{
$this->reservationId = $reservationId;
return $this;
}
/**
* Get reservationId
*
* @return integer
*/
public function getReservationId()
{
return $this->reservationId;
}
/**
* Set totalNet
*
* @param string $totalNet
*
* @return CvrReservationInvoiceRec
*/
public function setTotalNet($totalNet)
{
$this->totalNet = $totalNet;
return $this;
}
/**
* Get totalNet
*
* @return string
*/
public function getTotalNet()
{
return $this->totalNet;
}
/**
* Set vat
*
* @param string $vat
*
* @return CvrReservationInvoiceRec
*/
public function setVat($vat)
{
$this->vat = $vat;
return $this;
}
/**
* Get vat
*
* @return string
*/
public function getVat()
{
return $this->vat;
}
/**
* Set total
*
* @param string $total
*
* @return CvrReservationInvoiceRec
*/
public function setTotal($total)
{
$this->total = $total;
return $this;
}
/**
* Get total
*
* @return string
*/
public function getTotal()
{
return $this->total;
}
/**
* Set balance
*
* @param string $balance
*
* @return CvrReservationInvoiceRec
*/
public function setBalance($balance)
{
$this->balance = $balance;
return $this;
}
/**
* Get balance
*
* @return string
*/
public function getBalance()
{
return $this->balance;
}
/**
* Set invoiceToRec
*
* @param integer $invoiceToRec
*
* @return CvrReservationInvoiceRec
*/
public function setInvoiceToRec($invoiceToRec)
{
$this->invoiceToRec = $invoiceToRec;
return $this;
}
/**
* Get invoiceToRec
*
* @return integer
*/
public function getInvoiceToRec()
{
return $this->invoiceToRec;
}
/**
* Set clientName
*
* @param string $clientName
*
* @return CvrReservationInvoiceRec
*/
public function setClientName($clientName)
{
$this->clientName = $clientName;
return $this;
}
/**
* Get clientName
*
* @return string
*/
public function getClientName()
{
return $this->clientName;
}
/**
* Set clientAddress
*
* @param string $clientAddress
*
* @return CvrReservationInvoiceRec
*/
public function setClientAddress($clientAddress)
{
$this->clientAddress = $clientAddress;
return $this;
}
/**
* Get clientAddress
*
* @return string
*/
public function getClientAddress()
{
return $this->clientAddress;
}
/**
* Set clientDocument
*
* @param string $clientDocument
*
* @return CvrReservationInvoiceRec
*/
public function setClientDocument($clientDocument)
{
$this->clientDocument = $clientDocument;
return $this;
}
/**
* Get clientDocument
*
* @return string
*/
public function getClientDocument()
{
return $this->clientDocument;
}
/**
* Set clientType
*
* @param string $clientType
*
* @return CvrReservationInvoiceRec
*/
public function setClientType($clientType)
{
$this->clientType = $clientType;
return $this;
}
/**
* Get clientType
*
* @return string
*/
public function getClientType()
{
return $this->clientType;
}
/**
* Set createdAt
*
* @param \DateTime $createdAt
*
* @return CvrReservationInvoiceRec
*/
public function setCreatedAt($createdAt)
{
$this->createdAt = $createdAt;
return $this;
}
/**
* Get createdAt
*
* @return \DateTime
*/
public function getCreatedAt()
{
return $this->createdAt;
}
/**
* Set createdId
*
* @param integer $createdId
*
* @return CvrReservationInvoiceRec
*/
public function setCreatedId($createdId)
{
$this->createdId = $createdId;
return $this;
}
/**
* Get createdId
*
* @return integer
*/
public function getCreatedId()
{
return $this->createdId;
}
/**
* Set updatedAt
*
* @param \DateTime $updatedAt
*
* @return CvrReservationInvoiceRec
*/
public function setUpdatedAt($updatedAt)
{
$this->updatedAt = $updatedAt;
return $this;
}
/**
* Get updatedAt
*
* @return \DateTime
*/
public function getUpdatedAt()
{
return $this->updatedAt;
}
/**
* Set updatedId
*
* @param integer $updatedId
*
* @return CvrReservationInvoiceRec
*/
public function setUpdatedId($updatedId)
{
$this->updatedId = $updatedId;
return $this;
}
/**
* Get updatedId
*
* @return integer
*/
public function getUpdatedId()
{
return $this->updatedId;
}
}