<?php
namespace App\MDS\GreenPatioBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* ReservationInvoice
*
* @ORM\Table(name="reservation_invoice")
* @ORM\Entity(repositoryClass="App\MDS\GreenPatioBundle\Repository\ReservationInvoiceRepository")
*/
class ReservationInvoice
{
/**
* @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 \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;
/**
* @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;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set number
*
* @param string $number
*
* @return ReservationInvoice
*/
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 ReservationInvoice
*/
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 ReservationInvoice
*/
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 ReservationInvoice
*/
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 ReservationInvoice
*/
public function setReservationId($reservationId)
{
$this->reservationId = $reservationId;
return $this;
}
/**
* Get reservationId
*
* @return int
*/
public function getReservationId()
{
return $this->reservationId;
}
/**
* Set totalNet
*
* @param string $totalNet
*
* @return ReservationInvoice
*/
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 ReservationInvoice
*/
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 ReservationInvoice
*/
public function setTotal($total)
{
$this->total = $total;
return $this;
}
/**
* Get total
*
* @return string
*/
public function getTotal()
{
return $this->total;
}
/**
* Set createdAt
*
* @param \DateTime $createdAt
*
* @return ReservationInvoice
*/
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 ReservationInvoice
*/
public function setCreatedId($createdId)
{
$this->createdId = $createdId;
return $this;
}
/**
* Get createdId
*
* @return int
*/
public function getCreatedId()
{
return $this->createdId;
}
/**
* Set updatedAt
*
* @param \DateTime $updatedAt
*
* @return ReservationInvoice
*/
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 ReservationInvoice
*/
public function setUpdatedId($updatedId)
{
$this->updatedId = $updatedId;
return $this;
}
/**
* Get updatedId
*
* @return int
*/
public function getUpdatedId()
{
return $this->updatedId;
}
/**
* Set master
*
* @param string $master
*
* @return ReservationInvoice
*/
public function setMaster($master)
{
$this->master = $master;
return $this;
}
/**
* Get master
*
* @return string
*/
public function getMaster()
{
return $this->master;
}
/**
* Set balance
*
* @param string $balance
*
* @return ReservationInvoice
*/
public function setBalance($balance)
{
$this->balance = $balance;
return $this;
}
/**
* Get balance
*
* @return string
*/
public function getBalance()
{
return $this->balance;
}
/**
* Set clientName
*
* @param string $clientName
*
* @return ReservationInvoice
*/
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 ReservationInvoice
*/
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 ReservationInvoice
*/
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 ReservationInvoice
*/
public function setClientType($clientType)
{
$this->clientType = $clientType;
return $this;
}
/**
* Get clientType
*
* @return string
*/
public function getClientType()
{
return $this->clientType;
}
}