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