src/MDS/EventsBundle/Entity/ProposalInvoiceDepositItems.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\MDS\EventsBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  6. /**
  7.  * 0
  8.  *
  9.  * @ORM\Table(name="proposal_invoice_deposit_items")
  10.  * @ORM\Entity(repositoryClass="App\MDS\EventsBundle\Repository\ProposalInvoiceDepositItemsRepository")
  11.  * @ORM\HasLifecycleCallbacks()
  12.  */
  13. class ProposalInvoiceDepositItems
  14. {
  15.     /**
  16.      * @var int
  17.      *
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var int
  25.      *
  26.      * @ORM\Column(name="control_id", type="integer", nullable=true)
  27.      */
  28.     private $controlId;
  29.     /**
  30.      * @var string
  31.      *
  32.      * @ORM\Column(name="name", type="string", length=255)
  33.      * @Assert\NotBlank()
  34.      */
  35.     private $name;
  36.     /**
  37.      * @var string
  38.      *
  39.      * @ORM\Column(name="amount", type="string", length=255)
  40.      * @Assert\NotBlank()
  41.      */
  42.     private $amount;
  43.     /**
  44.      * @var string
  45.      *
  46.      * @ORM\Column(name="iva", type="string", length=255)
  47.      * @Assert\NotBlank()
  48.      */
  49.     private $iva;
  50.     /**
  51.      * @var int
  52.      *
  53.      * @ORM\Column(name="proposal_id", type="integer")
  54.      */
  55.     private $proposalId;
  56.     /**
  57.      * @var \DateTime
  58.      *
  59.      * @ORM\Column(name="created_at", type="datetime")
  60.      */
  61.     private $createdAt;
  62.     /**
  63.      * @var int
  64.      *
  65.      * @ORM\Column(name="created_id", type="integer")
  66.      */
  67.     private $createdId;
  68.     /**
  69.      * @var \DateTime
  70.      *
  71.      * @ORM\Column(name="updated_at", type="datetime")
  72.      */
  73.     private $updatedAt;
  74.     /**
  75.      * @var int
  76.      *
  77.      * @ORM\Column(name="updated_id", type="integer")
  78.      */
  79.     private $updatedId;
  80.     /**
  81.      * Get id
  82.      *
  83.      * @return int
  84.      */
  85.     public function getId()
  86.     {
  87.         return $this->id;
  88.     }
  89.     /**
  90.      * Set name
  91.      *
  92.      * @param string $name
  93.      *
  94.      * @return ProposalInvoiceDepositItems
  95.      */
  96.     public function setName($name)
  97.     {
  98.         $this->name $name;
  99.         return $this;
  100.     }
  101.     /**
  102.      * Get name
  103.      *
  104.      * @return string
  105.      */
  106.     public function getName()
  107.     {
  108.         return $this->name;
  109.     }
  110.     /**
  111.      * Set amount
  112.      *
  113.      * @param string $amount
  114.      *
  115.      * @return ProposalInvoiceDepositItems
  116.      */
  117.     public function setAmount($amount)
  118.     {
  119.         $this->amount $amount;
  120.         return $this;
  121.     }
  122.     /**
  123.      * Get amount
  124.      *
  125.      * @return string
  126.      */
  127.     public function getAmount()
  128.     {
  129.         return $this->amount;
  130.     }
  131.     /**
  132.      * Set iva
  133.      *
  134.      * @param string $iva
  135.      *
  136.      * @return ProposalInvoiceDepositItems
  137.      */
  138.     public function setIva($iva)
  139.     {
  140.         $this->iva $iva;
  141.         return $this;
  142.     }
  143.     /**
  144.      * Get iva
  145.      *
  146.      * @return string
  147.      */
  148.     public function getIva()
  149.     {
  150.         return $this->iva;
  151.     }
  152.     /**
  153.      * Set proposalId
  154.      *
  155.      * @param integer $proposalId
  156.      *
  157.      * @return ProposalInvoiceDepositItems
  158.      */
  159.     public function setProposalId($proposalId)
  160.     {
  161.         $this->proposalId $proposalId;
  162.         return $this;
  163.     }
  164.     /**
  165.      * Get proposalId
  166.      *
  167.      * @return int
  168.      */
  169.     public function getProposalId()
  170.     {
  171.         return $this->proposalId;
  172.     }
  173.     /**
  174.      * Set createdAt
  175.      *
  176.      * @param \DateTime $createdAt
  177.      *
  178.      * @return ProposalInvoiceDepositItems
  179.      */
  180.     public function setCreatedAt(\Datetime $createdAt)
  181.     {
  182.         $this->createdAt $createdAt;
  183.         return $this;
  184.     }
  185.     /**
  186.      * Get createdAt
  187.      *
  188.      * @return \DateTime
  189.      */
  190.     public function getCreatedAt()
  191.     {
  192.         return $this->createdAt;
  193.     }
  194.     /**
  195.      * Set createdId
  196.      *
  197.      * @param integer $createdId
  198.      *
  199.      * @return ProposalInvoiceDepositItems
  200.      */
  201.     public function setCreatedId($createdId)
  202.     {
  203.         $this->createdId $createdId;
  204.         return $this;
  205.     }
  206.     /**
  207.      * Get createdId
  208.      *
  209.      * @return integer
  210.      */
  211.     public function getCreatedId()
  212.     {
  213.         return $this->createdId;
  214.     }
  215.     /**
  216.      * Set updatedAt
  217.      *
  218.      * @param \DateTime $updatedAt
  219.      *
  220.      * @return ProposalInvoiceDepositItems
  221.      */
  222.     public function setUpdatedAt(\Datetime $updatedAt)
  223.     {
  224.         $this->updatedAt $updatedAt;
  225.         return $this;
  226.     }
  227.     /**
  228.      * Get updatedAt
  229.      *
  230.      * @return \DateTime
  231.      */
  232.     public function getUpdatedAt()
  233.     {
  234.         return $this->updatedAt;
  235.     }
  236.     /**
  237.      * Set updatedId
  238.      *
  239.      * @param integer $updatedId
  240.      *
  241.      * @return ProposalInvoiceDepositItems
  242.      */
  243.     public function setUpdatedId($updatedId)
  244.     {
  245.         $this->updatedId $updatedId;
  246.         return $this;
  247.     }
  248.     /**
  249.      * Get updatedId
  250.      *
  251.      * @return integer
  252.      */
  253.     public function getUpdatedId()
  254.     {
  255.         return $this->updatedId;
  256.     }
  257.     /**
  258.      * @ORM\PrePersist
  259.      */
  260.     public function setCreatedAtValue()
  261.     {
  262.         $this->createdAt = new \Datetime();
  263.     }
  264.     /**
  265.      * @ORM\PrePersist
  266.      * @ORM\PreUpdate
  267.      */
  268.     public function setUpdatedAtValue()
  269.     {
  270.         $this->updatedAt = new \Datetime();
  271.     }
  272.     /**
  273.      * Set controlId
  274.      *
  275.      * @param integer $controlId
  276.      *
  277.      * @return ProposalInvoiceDepositItems
  278.      */
  279.     public function setControlId($controlId)
  280.     {
  281.         $this->controlId $controlId;
  282.         return $this;
  283.     }
  284.     /**
  285.      * Get controlId
  286.      *
  287.      * @return integer
  288.      */
  289.     public function getControlId()
  290.     {
  291.         return $this->controlId;
  292.     }
  293. }