src/MDS/EventsBundle/Entity/ProposalInvoice.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.  * ProposalInvoice
  8.  *
  9.  * @ORM\Table(name="proposals_invoice")
  10.  * @ORM\Entity(repositoryClass="App\MDS\EventsBundle\Repository\ProposalInvoiceRepository")
  11.  * @ORM\HasLifecycleCallbacks()
  12.  */
  13. class ProposalInvoice
  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 string
  25.      *
  26.      * @ORM\Column(name="number", type="string", nullable=true)
  27.      */
  28.     private $number;
  29.     /**
  30.      * @var string
  31.      *
  32.      * @ORM\Column(name="prefix", type="string")
  33.      */
  34.     private $prefix;
  35.     /**
  36.      * @var /datetime
  37.      *
  38.      * @ORM\Column(name="date_at", type="datetime")
  39.      */
  40.     private $dateAt;
  41.     /**
  42.      * @var string
  43.      *
  44.      * @ORM\Column(name="type", type="string")
  45.      */
  46.     private $type;
  47.     /**
  48.      * @var int
  49.      *
  50.      * @ORM\Column(name="proposal_id", type="integer")
  51.      */
  52.     private $proposalId;
  53.     /**
  54.      * @var string
  55.      *
  56.      * @ORM\Column(name="total_net", type="string", nullable=true)
  57.      */
  58.     private $totalnet;
  59.     /**
  60.      * @var string
  61.      *
  62.      * @ORM\Column(name="vat", type="text", nullable=true)
  63.      */
  64.     private $vat;
  65.     /**
  66.      * @var string
  67.      *
  68.      * @ORM\Column(name="total", type="string", nullable=true)
  69.      */
  70.     private $total;
  71.     /**
  72.      * @var \DateTime
  73.      *
  74.      * @ORM\Column(name="created_at", type="datetime")
  75.      */
  76.     private $createdAt;
  77.     /**
  78.      * @var int
  79.      *
  80.      * @ORM\Column(name="created_id", type="integer")
  81.      */
  82.     private $createdId;
  83.     /**
  84.      * @var \DateTime
  85.      *
  86.      * @ORM\Column(name="updated_at", type="datetime")
  87.      */
  88.     private $updatedAt;
  89.     /**
  90.      * @var int
  91.      *
  92.      * @ORM\Column(name="updated_id", type="integer")
  93.      */
  94.     private $updatedId;
  95.     /**
  96.      * Get id
  97.      *
  98.      * @return int
  99.      */
  100.     public function getId()
  101.     {
  102.         return $this->id;
  103.     }
  104.     /**
  105.      * Set prefix
  106.      *
  107.      * @param string $prefix
  108.      *
  109.      * @return ProposalInvoice
  110.      */
  111.     public function setPrefix($prefix)
  112.     {
  113.         $this->prefix $prefix;
  114.         return $this;
  115.     }
  116.     /**
  117.      * Get prefix
  118.      *
  119.      * @return string
  120.      */
  121.     public function getPrefix()
  122.     {
  123.         return $this->prefix;
  124.     }
  125.     /**
  126.      * Set dateAt
  127.      *
  128.      * @param \DateTime $dateAt
  129.      *
  130.      * @return ProposalInvoice
  131.      */
  132.     public function setDateAt($dateAt)
  133.     {
  134.         $this->dateAt $dateAt;
  135.         return $this;
  136.     }
  137.     /**
  138.      * Get dateAt
  139.      *
  140.      * @return \DateTime
  141.      */
  142.     public function getDateAt()
  143.     {
  144.         return $this->dateAt;
  145.     }
  146.     /**
  147.      * Set proposalId
  148.      *
  149.      * @param integer $proposalId
  150.      *
  151.      * @return ProposalInvoice
  152.      */
  153.     public function setProposalId($proposalId)
  154.     {
  155.         $this->proposalId $proposalId;
  156.         return $this;
  157.     }
  158.     /**
  159.      * Get proposalId
  160.      *
  161.      * @return integer
  162.      */
  163.     public function getProposalId()
  164.     {
  165.         return $this->proposalId;
  166.     }
  167.     /**
  168.      * Set createdAt
  169.      *
  170.      * @param \DateTime $createdAt
  171.      *
  172.      * @return ProposalInvoice
  173.      */
  174.     public function setCreatedAt($createdAt)
  175.     {
  176.         $this->createdAt $createdAt;
  177.         return $this;
  178.     }
  179.     /**
  180.      * Get createdAt
  181.      *
  182.      * @return \DateTime
  183.      */
  184.     public function getCreatedAt()
  185.     {
  186.         return $this->createdAt;
  187.     }
  188.     /**
  189.      * Set createdId
  190.      *
  191.      * @param integer $createdId
  192.      *
  193.      * @return ProposalInvoice
  194.      */
  195.     public function setCreatedId($createdId)
  196.     {
  197.         $this->createdId $createdId;
  198.         return $this;
  199.     }
  200.     /**
  201.      * Get createdId
  202.      *
  203.      * @return integer
  204.      */
  205.     public function getCreatedId()
  206.     {
  207.         return $this->createdId;
  208.     }
  209.     /**
  210.      * Set updatedAt
  211.      *
  212.      * @param \DateTime $updatedAt
  213.      *
  214.      * @return ProposalInvoice
  215.      */
  216.     public function setUpdatedAt($updatedAt)
  217.     {
  218.         $this->updatedAt $updatedAt;
  219.         return $this;
  220.     }
  221.     /**
  222.      * Get updatedAt
  223.      *
  224.      * @return \DateTime
  225.      */
  226.     public function getUpdatedAt()
  227.     {
  228.         return $this->updatedAt;
  229.     }
  230.     /**
  231.      * Set updatedId
  232.      *
  233.      * @param integer $updatedId
  234.      *
  235.      * @return ProposalInvoice
  236.      */
  237.     public function setUpdatedId($updatedId)
  238.     {
  239.         $this->updatedId $updatedId;
  240.         return $this;
  241.     }
  242.     /**
  243.      * Get updatedId
  244.      *
  245.      * @return integer
  246.      */
  247.     public function getUpdatedId()
  248.     {
  249.         return $this->updatedId;
  250.     }
  251.     /**
  252.      * @ORM\PrePersist
  253.      */
  254.     public function setCreatedAtValue()
  255.     {
  256.         $this->createdAt = new \Datetime();
  257.     }
  258.     /**
  259.      * @ORM\PrePersist
  260.      * @ORM\PreUpdate
  261.      */
  262.     public function setUpdatedAtValue()
  263.     {
  264.         $this->updatedAt = new \Datetime();
  265.     }
  266.     /**
  267.      * Set number
  268.      *
  269.      * @param string $number
  270.      *
  271.      * @return ProposalInvoice
  272.      */
  273.     public function setNumber($number)
  274.     {
  275.         $this->number $number;
  276.         return $this;
  277.     }
  278.     /**
  279.      * Get number
  280.      *
  281.      * @return string
  282.      */
  283.     public function getNumber()
  284.     {
  285.         return $this->number;
  286.     }
  287.     /**
  288.      * Set type
  289.      *
  290.      * @param string $type
  291.      *
  292.      * @return ProposalInvoice
  293.      */
  294.     public function setType($type)
  295.     {
  296.         $this->type $type;
  297.         return $this;
  298.     }
  299.     /**
  300.      * Get type
  301.      *
  302.      * @return string
  303.      */
  304.     public function getType()
  305.     {
  306.         return $this->type;
  307.     }
  308.     /**
  309.      * Set totalnet
  310.      *
  311.      * @param string $totalnet
  312.      *
  313.      * @return ProposalInvoice
  314.      */
  315.     public function setTotalnet($totalnet)
  316.     {
  317.         $this->totalnet $totalnet;
  318.         return $this;
  319.     }
  320.     /**
  321.      * Get totalnet
  322.      *
  323.      * @return string
  324.      */
  325.     public function getTotalnet()
  326.     {
  327.         return $this->totalnet;
  328.     }
  329.     /**
  330.      * Set vat
  331.      *
  332.      * @param string $vat
  333.      *
  334.      * @return ProposalInvoice
  335.      */
  336.     public function setVat($vat)
  337.     {
  338.         $this->vat $vat;
  339.         return $this;
  340.     }
  341.     /**
  342.      * Get vat
  343.      *
  344.      * @return string
  345.      */
  346.     public function getVat()
  347.     {
  348.         return $this->vat;
  349.     }
  350.     /**
  351.      * Set total
  352.      *
  353.      * @param string $total
  354.      *
  355.      * @return ProposalInvoice
  356.      */
  357.     public function setTotal($total)
  358.     {
  359.         $this->total $total;
  360.         return $this;
  361.     }
  362.     /**
  363.      * Get total
  364.      *
  365.      * @return string
  366.      */
  367.     public function getTotal()
  368.     {
  369.         return $this->total;
  370.     }
  371. }