<?php
namespace App\MDS\GreenPatioBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* ReservationInvoiceDepositItems
*
* @ORM\Table(name="reservation_invoice_deposit_items")
* @ORM\Entity(repositoryClass="App\MDS\GreenPatioBundle\Repository\ReservationInvoiceDepositItemsRepository")
* @ORM\HasLifecycleCallbacks()
*/
class ReservationInvoiceDepositItems
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var int
*
* @ORM\Column(name="controlId", type="integer", nullable=true)
*/
private $controlId;
/**
* @var string
*
* @ORM\Column(name="name", type="string", length=255)
* @Assert\NotBlank()
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="amount", type="string", length=255)
* @Assert\NotBlank()
*/
private $amount;
/**
* @var string
*
* @ORM\Column(name="iva", type="string", length=255)
* @Assert\NotBlank()
*/
private $iva;
/**
* @var int
*
* @ORM\Column(name="reservation_id", type="integer")
*/
private $reservationId;
/**
* @var \DateTime
*
* @ORM\Column(name="created_at", type="datetime")
*/
private $createdAt;
/**
* @var int
*
* @ORM\Column(name="created_id", type="integer")
*/
private $createdId;
/**
* @var \DateTime
*
* @ORM\Column(name="updated_at", type="datetime")
*/
private $updatedAt;
/**
* @var int
*
* @ORM\Column(name="updated_id", type="integer")
*/
private $updatedId;
/**
* Get id
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set controlId
*
* @param integer $controlId
*
* @return ReservationInvoiceDepositItems
*/
public function setControlId($controlId)
{
$this->controlId = $controlId;
return $this;
}
/**
* Get controlId
*
* @return int
*/
public function getControlId()
{
return $this->controlId;
}
/**
* Set name
*
* @param string $name
*
* @return ReservationInvoiceDepositItems
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Set amount
*
* @param string $amount
*
* @return ReservationInvoiceDepositItems
*/
public function setAmount($amount)
{
$this->amount = $amount;
return $this;
}
/**
* Get amount
*
* @return string
*/
public function getAmount()
{
return $this->amount;
}
/**
* Set iva
*
* @param string $iva
*
* @return ReservationInvoiceDepositItems
*/
public function setIva($iva)
{
$this->iva = $iva;
return $this;
}
/**
* Get iva
*
* @return string
*/
public function getIva()
{
return $this->iva;
}
/**
* Set reservationId
*
* @param integer $reservationId
*
* @return ReservationInvoiceDepositItems
*/
public function setReservationId($reservationId)
{
$this->reservationId = $reservationId;
return $this;
}
/**
* Get reservationId
*
* @return integer
*/
public function getReservationId()
{
return $this->reservationId;
}
/**
* Set createdAt
*
* @param \DateTime $createdAt
*
* @return ReservationInvoiceDepositItems
*/
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 ReservationInvoiceDepositItems
*/
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 ReservationInvoiceDepositItems
*/
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 ReservationInvoiceDepositItems
*/
public function setUpdatedId($updatedId)
{
$this->updatedId = $updatedId;
return $this;
}
/**
* Get updatedId
*
* @return integer
*/
public function getUpdatedId()
{
return $this->updatedId;
}
/**
* @ORM\PrePersist
*/
public function setCreatedAtValue()
{
$this->createdAt = new \Datetime();
}
/**
* @ORM\PrePersist
* @ORM\PreUpdate
*/
public function setUpdatedAtValue()
{
$this->updatedAt = new \Datetime();
}
}