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

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