src/MDS/EventsBundle/Entity/ProposalFee.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\MDS\EventsBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * ProposalFee
  6.  *
  7.  * @ORM\Table(name="proposal_fee")
  8.  * @ORM\Entity(repositoryClass="App\MDS\EventsBundle\Repository\ProposalFeeRepository")
  9.  */
  10. class ProposalFee
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer")
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var int
  22.      *
  23.      * @ORM\Column(name="proposal_id", type="integer")
  24.      */
  25.     private $proposalId;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="name", type="string", length=255, nullable=true)
  30.      */
  31.     private $name;
  32.     /**
  33.      * @var string
  34.      * Hace referencia al selector % o €
  35.      *
  36.      * @ORM\Column(name="type", type="string", length=255, nullable=true)
  37.      */
  38.     private $type;
  39.     /**
  40.      * @var string
  41.      *
  42.      * @ORM\Column(name="amount", type="string", length=255, nullable=true)
  43.      * Cantidad en euros o en % de la base
  44.      */
  45.     private $amount;
  46.     /**
  47.      * @var string
  48.      *
  49.      * @ORM\Column(name="op_iva", type="string", length=255, nullable=true)
  50.      */
  51.     private $opIva '0';
  52.     /**
  53.      * @var string
  54.      *
  55.      * @ORM\Column(name="iva", type="string", length=255, nullable=true)
  56.      */
  57.     private $iva;
  58.     /**
  59.      * @ORM\Column(name="to_invoice", type="boolean", nullable=true)
  60.      */
  61.     private $toInvoice;
  62.     /**
  63.      * @var string
  64.      *
  65.      * @ORM\Column(name="fee_total", type="string", length=255, nullable=true)
  66.      * Despues de aplicar impuestos
  67.      */
  68.     private $feeTotal;
  69.     /**
  70.      * @var int
  71.      *
  72.      * @ORM\Column(name="created_id", type="integer")
  73.      */
  74.     private $createdId;
  75.     /**
  76.      * @var \DateTime
  77.      *
  78.      * @ORM\Column(name="created_at", type="datetime")
  79.      */
  80.     private $createdAt;
  81.     /**
  82.      * @var int
  83.      *
  84.      * @ORM\Column(name="updated_id", type="integer")
  85.      */
  86.     private $updatedId;
  87.     /**
  88.      * @var \DateTime
  89.      *
  90.      * @ORM\Column(name="updated_at", type="datetime")
  91.      */
  92.     private $updatedAt;
  93.     /**
  94.      * Get id
  95.      *
  96.      * @return int
  97.      */
  98.     public function getId()
  99.     {
  100.         return $this->id;
  101.     }
  102.     /**
  103.      * Set proposalId
  104.      *
  105.      * @param integer $proposalId
  106.      *
  107.      * @return ProposalFee
  108.      */
  109.     public function setProposalId($proposalId)
  110.     {
  111.         $this->proposalId $proposalId;
  112.         return $this;
  113.     }
  114.     /**
  115.      * Get proposalId
  116.      *
  117.      * @return integer
  118.      */
  119.     public function getProposalId()
  120.     {
  121.         return $this->proposalId;
  122.     }
  123.     /**
  124.      * Set name
  125.      *
  126.      * @param string $name
  127.      *
  128.      * @return ProposalFee
  129.      */
  130.     public function setName($name)
  131.     {
  132.         $this->name $name;
  133.         return $this;
  134.     }
  135.     /**
  136.      * Get name
  137.      *
  138.      * @return string
  139.      */
  140.     public function getName()
  141.     {
  142.         return $this->name;
  143.     }
  144.     /**
  145.      * Set type
  146.      *
  147.      * @param string $type
  148.      *
  149.      * @return ProposalFee
  150.      */
  151.     public function setType($type)
  152.     {
  153.         $this->type $type;
  154.         return $this;
  155.     }
  156.     /**
  157.      * Get type
  158.      *
  159.      * @return string
  160.      */
  161.     public function getType()
  162.     {
  163.         return $this->type;
  164.     }
  165.     /**
  166.      * Set amount
  167.      *
  168.      * @param string $amount
  169.      *
  170.      * @return ProposalFee
  171.      */
  172.     public function setAmount($amount)
  173.     {
  174.         $this->amount $amount;
  175.         return $this;
  176.     }
  177.     /**
  178.      * Get amount
  179.      *
  180.      * @return string
  181.      */
  182.     public function getAmount()
  183.     {
  184.         return $this->amount;
  185.     }
  186.     /**
  187.      * Set opIva
  188.      *
  189.      * @param string $opIva
  190.      *
  191.      * @return ProposalFee
  192.      */
  193.     public function setOpIva($opIva)
  194.     {
  195.         $this->opIva $opIva;
  196.         return $this;
  197.     }
  198.     /**
  199.      * Get opIva
  200.      *
  201.      * @return string
  202.      */
  203.     public function getOpIva()
  204.     {
  205.         return $this->opIva;
  206.     }
  207.     /**
  208.      * Set iva
  209.      *
  210.      * @param string $iva
  211.      *
  212.      * @return ProposalFee
  213.      */
  214.     public function setIva($iva)
  215.     {
  216.         $this->iva $iva;
  217.         return $this;
  218.     }
  219.     /**
  220.      * Get iva
  221.      *
  222.      * @return string
  223.      */
  224.     public function getIva()
  225.     {
  226.         return $this->iva;
  227.     }
  228.     /**
  229.      * Set createdId
  230.      *
  231.      * @param integer $createdId
  232.      *
  233.      * @return ProposalFee
  234.      */
  235.     public function setCreatedId($createdId)
  236.     {
  237.         $this->createdId $createdId;
  238.         return $this;
  239.     }
  240.     /**
  241.      * Get createdId
  242.      *
  243.      * @return integer
  244.      */
  245.     public function getCreatedId()
  246.     {
  247.         return $this->createdId;
  248.     }
  249.     /**
  250.      * Set createdAt
  251.      *
  252.      * @param \DateTime $createdAt
  253.      *
  254.      * @return ProposalFee
  255.      */
  256.     public function setCreatedAt($createdAt)
  257.     {
  258.         $this->createdAt $createdAt;
  259.         return $this;
  260.     }
  261.     /**
  262.      * Get createdAt
  263.      *
  264.      * @return \DateTime
  265.      */
  266.     public function getCreatedAt()
  267.     {
  268.         return $this->createdAt;
  269.     }
  270.     /**
  271.      * Set updatedId
  272.      *
  273.      * @param integer $updatedId
  274.      *
  275.      * @return ProposalFee
  276.      */
  277.     public function setUpdatedId($updatedId)
  278.     {
  279.         $this->updatedId $updatedId;
  280.         return $this;
  281.     }
  282.     /**
  283.      * Get updatedId
  284.      *
  285.      * @return integer
  286.      */
  287.     public function getUpdatedId()
  288.     {
  289.         return $this->updatedId;
  290.     }
  291.     /**
  292.      * Set updatedAt
  293.      *
  294.      * @param \DateTime $updatedAt
  295.      *
  296.      * @return ProposalFee
  297.      */
  298.     public function setUpdatedAt($updatedAt)
  299.     {
  300.         $this->updatedAt $updatedAt;
  301.         return $this;
  302.     }
  303.     /**
  304.      * Get updatedAt
  305.      *
  306.      * @return \DateTime
  307.      */
  308.     public function getUpdatedAt()
  309.     {
  310.         return $this->updatedAt;
  311.     }
  312.     /**
  313.      * Set toInvoice
  314.      *
  315.      * @param boolean $toInvoice
  316.      *
  317.      * @return ProposalFee
  318.      */
  319.     public function setToInvoice($toInvoice)
  320.     {
  321.         $this->toInvoice $toInvoice;
  322.         return $this;
  323.     }
  324.     /**
  325.      * Get toInvoice
  326.      *
  327.      * @return boolean
  328.      */
  329.     public function getToInvoice()
  330.     {
  331.         return $this->toInvoice;
  332.     }
  333.     /**
  334.      * Set feeTotal
  335.      *
  336.      * @param string $feeTotal
  337.      *
  338.      * @return ProposalFee
  339.      */
  340.     public function setFeeTotal($feeTotal)
  341.     {
  342.         $this->feeTotal $feeTotal;
  343.         return $this;
  344.     }
  345.     /**
  346.      * Get feeTotal
  347.      *
  348.      * @return string
  349.      */
  350.     public function getFeeTotal()
  351.     {
  352.         return $this->feeTotal;
  353.     }
  354. }