src/MDS/VenuesBundle/Entity/ReservationInvoiceRec.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\MDS\VenuesBundle\Entity;
  3. use App\Entity\DeliveryNote;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * ReservationInvoiceRec
  7.  *
  8.  * @ORM\Table(name="reservation_invoice_rec")
  9.  * @ORM\Entity(repositoryClass="App\MDS\VenuesBundle\Repository\ReservationInvoiceRecRepository")
  10.  */
  11. class ReservationInvoiceRec
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer")
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="AUTO")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var string
  23.      *
  24.      * @ORM\Column(name="master", type="string", length=255)
  25.      */
  26.     private $master 'master';
  27.     /**
  28.      * @var string
  29.      *
  30.      * @ORM\Column(name="number", type="string", length=255)
  31.      */
  32.     private $number;
  33.     /**
  34.      * @var string
  35.      *
  36.      * @ORM\Column(name="prefix", type="string", length=255, nullable=true)
  37.      */
  38.     private $prefix;
  39.     /**
  40.      * @var \DateTime
  41.      *
  42.      * @ORM\Column(name="dateAt", type="datetime")
  43.      */
  44.     private $dateAt;
  45.     /**
  46.      * @var string
  47.      *
  48.      * @ORM\Column(name="type", type="string", length=255)
  49.      */
  50.     private $type;
  51.     /**
  52.      * @var int
  53.      *
  54.      * @ORM\Column(name="reservationId", type="integer")
  55.      */
  56.     private $reservationId;
  57.     /**
  58.      * @var string
  59.      *
  60.      * @ORM\Column(name="totalNet", type="string", length=255)
  61.      */
  62.     private $totalNet;
  63.     /**
  64.      * @var string
  65.      *
  66.      * @ORM\Column(name="vat", type="text", nullable=true)
  67.      */
  68.     private $vat;
  69.     /**
  70.      * @var string
  71.      *
  72.      * @ORM\Column(name="total", type="string", length=255, nullable=true)
  73.      */
  74.     private $total;
  75.     /**
  76.      * @var string
  77.      *
  78.      * @ORM\Column(name="balance", type="string", length=255, nullable=true)
  79.      */
  80.     private $balance;
  81.     /**
  82.      * @var \DateTime
  83.      *
  84.      * @ORM\Column(name="createdAt", type="datetime")
  85.      */
  86.     private $createdAt;
  87.     /**
  88.      * @var int
  89.      *
  90.      * @ORM\Column(name="createdId", type="integer")
  91.      */
  92.     private $createdId;
  93.     /**
  94.      * @var \DateTime
  95.      *
  96.      * @ORM\Column(name="updatedAt", type="datetime")
  97.      */
  98.     private $updatedAt;
  99.     /**
  100.      * @var int
  101.      *
  102.      * @ORM\Column(name="updatedId", type="integer")
  103.      */
  104.     private $updatedId;
  105.     /**
  106.      * @var int
  107.      *
  108.      * @ORM\Column(name="invoiceToRec", type="integer", nullable=true)
  109.      */
  110.     private $invoiceToRec;
  111.     /**
  112.      * @var string
  113.      *
  114.      * @ORM\Column(name="client_name", type="string", length=255, nullable=true)
  115.      * Nombre del cliente
  116.      */
  117.     private $clientName;
  118.     /**
  119.      * @var string
  120.      *
  121.      * @ORM\Column(name="client_address", type="string", length=255, nullable=true)
  122.      * Direccion del cliente
  123.      */
  124.     private $clientAddress;
  125.     /**
  126.      * @var string
  127.      *
  128.      * @ORM\Column(name="client_document", type="string", length=255, nullable=true)
  129.      * NIF o CIF del cliente
  130.      */
  131.     private $clientDocument;
  132.     /**
  133.      * @var string
  134.      *
  135.      * @ORM\Column(name="client_type", type="string", length=255, nullable=true)
  136.      * Tipo de cliente (cliente o proveedor). Usado para emitir facturas de comision a los proveedores
  137.      */
  138.     private $clientType;
  139.     /**
  140.      * @ORM\OneToOne(targetEntity=DeliveryNote::class, mappedBy="reservationInvoiceRec", cascade={"persist", "remove"})
  141.      */
  142.     private $deliveryNote;
  143.     /**
  144.      * Get id
  145.      *
  146.      * @return int
  147.      */
  148.     public function getId()
  149.     {
  150.         return $this->id;
  151.     }
  152.     /**
  153.      * Set master
  154.      *
  155.      * @param string $master
  156.      *
  157.      * @return ReservationInvoiceRec
  158.      */
  159.     public function setMaster($master)
  160.     {
  161.         $this->master $master;
  162.         return $this;
  163.     }
  164.     /**
  165.      * Get master
  166.      *
  167.      * @return string
  168.      */
  169.     public function getMaster()
  170.     {
  171.         return $this->master;
  172.     }
  173.     /**
  174.      * Set number
  175.      *
  176.      * @param string $number
  177.      *
  178.      * @return ReservationInvoiceRec
  179.      */
  180.     public function setNumber($number)
  181.     {
  182.         $this->number $number;
  183.         return $this;
  184.     }
  185.     /**
  186.      * Get number
  187.      *
  188.      * @return string
  189.      */
  190.     public function getNumber()
  191.     {
  192.         return $this->number;
  193.     }
  194.     /**
  195.      * Set prefix
  196.      *
  197.      * @param string $prefix
  198.      *
  199.      * @return ReservationInvoiceRec
  200.      */
  201.     public function setPrefix($prefix)
  202.     {
  203.         $this->prefix $prefix;
  204.         return $this;
  205.     }
  206.     /**
  207.      * Get prefix
  208.      *
  209.      * @return string
  210.      */
  211.     public function getPrefix()
  212.     {
  213.         return $this->prefix;
  214.     }
  215.     /**
  216.      * Set dateAt
  217.      *
  218.      * @param \DateTime $dateAt
  219.      *
  220.      * @return ReservationInvoiceRec
  221.      */
  222.     public function setDateAt($dateAt)
  223.     {
  224.         $this->dateAt $dateAt;
  225.         return $this;
  226.     }
  227.     /**
  228.      * Get dateAt
  229.      *
  230.      * @return \DateTime
  231.      */
  232.     public function getDateAt()
  233.     {
  234.         return $this->dateAt;
  235.     }
  236.     /**
  237.      * Set type
  238.      *
  239.      * @param string $type
  240.      *
  241.      * @return ReservationInvoiceRec
  242.      */
  243.     public function setType($type)
  244.     {
  245.         $this->type $type;
  246.         return $this;
  247.     }
  248.     /**
  249.      * Get type
  250.      *
  251.      * @return string
  252.      */
  253.     public function getType()
  254.     {
  255.         return $this->type;
  256.     }
  257.     /**
  258.      * Set reservationId
  259.      *
  260.      * @param integer $reservationId
  261.      *
  262.      * @return ReservationInvoiceRec
  263.      */
  264.     public function setReservationId($reservationId)
  265.     {
  266.         $this->reservationId $reservationId;
  267.         return $this;
  268.     }
  269.     /**
  270.      * Get reservationId
  271.      *
  272.      * @return integer
  273.      */
  274.     public function getReservationId()
  275.     {
  276.         return $this->reservationId;
  277.     }
  278.     /**
  279.      * Set totalNet
  280.      *
  281.      * @param string $totalNet
  282.      *
  283.      * @return ReservationInvoiceRec
  284.      */
  285.     public function setTotalNet($totalNet)
  286.     {
  287.         $this->totalNet $totalNet;
  288.         return $this;
  289.     }
  290.     /**
  291.      * Get totalNet
  292.      *
  293.      * @return string
  294.      */
  295.     public function getTotalNet()
  296.     {
  297.         return $this->totalNet;
  298.     }
  299.     /**
  300.      * Set vat
  301.      *
  302.      * @param string $vat
  303.      *
  304.      * @return ReservationInvoiceRec
  305.      */
  306.     public function setVat($vat)
  307.     {
  308.         $this->vat $vat;
  309.         return $this;
  310.     }
  311.     /**
  312.      * Get vat
  313.      *
  314.      * @return string
  315.      */
  316.     public function getVat()
  317.     {
  318.         return $this->vat;
  319.     }
  320.     /**
  321.      * Set total
  322.      *
  323.      * @param string $total
  324.      *
  325.      * @return ReservationInvoiceRec
  326.      */
  327.     public function setTotal($total)
  328.     {
  329.         $this->total $total;
  330.         return $this;
  331.     }
  332.     /**
  333.      * Get total
  334.      *
  335.      * @return string
  336.      */
  337.     public function getTotal()
  338.     {
  339.         return $this->total;
  340.     }
  341.     /**
  342.      * Set createdAt
  343.      *
  344.      * @param \DateTime $createdAt
  345.      *
  346.      * @return ReservationInvoiceRec
  347.      */
  348.     public function setCreatedAt($createdAt)
  349.     {
  350.         $this->createdAt $createdAt;
  351.         return $this;
  352.     }
  353.     /**
  354.      * Get createdAt
  355.      *
  356.      * @return \DateTime
  357.      */
  358.     public function getCreatedAt()
  359.     {
  360.         return $this->createdAt;
  361.     }
  362.     /**
  363.      * Set createdId
  364.      *
  365.      * @param integer $createdId
  366.      *
  367.      * @return ReservationInvoiceRec
  368.      */
  369.     public function setCreatedId($createdId)
  370.     {
  371.         $this->createdId $createdId;
  372.         return $this;
  373.     }
  374.     /**
  375.      * Get createdId
  376.      *
  377.      * @return integer
  378.      */
  379.     public function getCreatedId()
  380.     {
  381.         return $this->createdId;
  382.     }
  383.     /**
  384.      * Set updatedAt
  385.      *
  386.      * @param \DateTime $updatedAt
  387.      *
  388.      * @return ReservationInvoiceRec
  389.      */
  390.     public function setUpdatedAt($updatedAt)
  391.     {
  392.         $this->updatedAt $updatedAt;
  393.         return $this;
  394.     }
  395.     /**
  396.      * Get updatedAt
  397.      *
  398.      * @return \DateTime
  399.      */
  400.     public function getUpdatedAt()
  401.     {
  402.         return $this->updatedAt;
  403.     }
  404.     /**
  405.      * Set updatedId
  406.      *
  407.      * @param integer $updatedId
  408.      *
  409.      * @return ReservationInvoiceRec
  410.      */
  411.     public function setUpdatedId($updatedId)
  412.     {
  413.         $this->updatedId $updatedId;
  414.         return $this;
  415.     }
  416.     /**
  417.      * Get updatedId
  418.      *
  419.      * @return integer
  420.      */
  421.     public function getUpdatedId()
  422.     {
  423.         return $this->updatedId;
  424.     }
  425.     /**
  426.      * Set balance
  427.      *
  428.      * @param string $balance
  429.      *
  430.      * @return ReservationInvoiceRec
  431.      */
  432.     public function setBalance($balance)
  433.     {
  434.         $this->balance $balance;
  435.         return $this;
  436.     }
  437.     /**
  438.      * Get balance
  439.      *
  440.      * @return string
  441.      */
  442.     public function getBalance()
  443.     {
  444.         return $this->balance;
  445.     }
  446.     /**
  447.      * Set invoiceToRec
  448.      *
  449.      * @param integer $invoiceToRec
  450.      *
  451.      * @return ReservationInvoiceRec
  452.      */
  453.     public function setInvoiceToRec($invoiceToRec)
  454.     {
  455.         $this->invoiceToRec $invoiceToRec;
  456.         return $this;
  457.     }
  458.     /**
  459.      * Get invoiceToRec
  460.      *
  461.      * @return integer
  462.      */
  463.     public function getInvoiceToRec()
  464.     {
  465.         return $this->invoiceToRec;
  466.     }
  467.     /**
  468.      * Set clientName
  469.      *
  470.      * @param string $clientName
  471.      *
  472.      * @return ReservationInvoiceRec
  473.      */
  474.     public function setClientName($clientName)
  475.     {
  476.         $this->clientName $clientName;
  477.         return $this;
  478.     }
  479.     /**
  480.      * Get clientName
  481.      *
  482.      * @return string
  483.      */
  484.     public function getClientName()
  485.     {
  486.         return $this->clientName;
  487.     }
  488.     /**
  489.      * Set clientAddress
  490.      *
  491.      * @param string $clientAddress
  492.      *
  493.      * @return ReservationInvoiceRec
  494.      */
  495.     public function setClientAddress($clientAddress)
  496.     {
  497.         $this->clientAddress $clientAddress;
  498.         return $this;
  499.     }
  500.     /**
  501.      * Get clientAddress
  502.      *
  503.      * @return string
  504.      */
  505.     public function getClientAddress()
  506.     {
  507.         return $this->clientAddress;
  508.     }
  509.     /**
  510.      * Set clientDocument
  511.      *
  512.      * @param string $clientDocument
  513.      *
  514.      * @return ReservationInvoiceRec
  515.      */
  516.     public function setClientDocument($clientDocument)
  517.     {
  518.         $this->clientDocument $clientDocument;
  519.         return $this;
  520.     }
  521.     /**
  522.      * Get clientDocument
  523.      *
  524.      * @return string
  525.      */
  526.     public function getClientDocument()
  527.     {
  528.         return $this->clientDocument;
  529.     }
  530.     /**
  531.      * Set clientType
  532.      *
  533.      * @param string $clientType
  534.      *
  535.      * @return ReservationInvoiceRec
  536.      */
  537.     public function setClientType($clientType)
  538.     {
  539.         $this->clientType $clientType;
  540.         return $this;
  541.     }
  542.     /**
  543.      * Get clientType
  544.      *
  545.      * @return string
  546.      */
  547.     public function getClientType()
  548.     {
  549.         return $this->clientType;
  550.     }
  551.     public function getDeliveryNote(): ?DeliveryNote
  552.     {
  553.         return $this->deliveryNote;
  554.     }
  555.     public function setDeliveryNote(?DeliveryNote $deliveryNote): self
  556.     {
  557.         // unset the owning side of the relation if necessary
  558.         if ($deliveryNote === null && $this->deliveryNote !== null) {
  559.             $this->deliveryNote->setReservationInvoiceRec(null);
  560.         }
  561.         // set the owning side of the relation if necessary
  562.         if ($deliveryNote !== null && $deliveryNote->getReservationInvoiceRec() !== $this) {
  563.             $deliveryNote->setReservationInvoiceRec($this);
  564.         }
  565.         $this->deliveryNote $deliveryNote;
  566.         return $this;
  567.     }
  568. }