src/Aviatur/GeneralBundle/Entity/OrderProduct.php line 13

Open in your IDE?
  1. <?php
  2. namespace Aviatur\GeneralBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * OrderProduct.
  6.  *
  7.  * @ORM\Table(name="order_product", indexes={@ORM\Index(name="IDX_3E7A119F8D9F6D38", columns={"order_id"}), @ORM\Index(name="provider_id", columns={"provider_id"})})
  8.  * @ORM\Entity(repositoryClass="Aviatur\GeneralBundle\Entity\OrderProductRepository")
  9.  */
  10. class OrderProduct
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="IDENTITY")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="productIdAviatur", type="string", length=255, nullable=true)
  24.      */
  25.     private $productidaviatur;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="description", type="string", length=255, nullable=false)
  30.      */
  31.     private $description;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="paymentidaviatur", type="string", length=500, nullable=true)
  36.      */
  37.     private $paymentidaviatur;
  38.     /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(name="booking", type="string", length=100, nullable=true)
  42.      */
  43.     private $booking;
  44.     /**
  45.      * @var string
  46.      *
  47.      * @ORM\Column(name="payRequest", type="text", nullable=true)
  48.      */
  49.     private $payrequest;
  50.     /**
  51.      * @var string
  52.      *
  53.      * @ORM\Column(name="payResponse", type="text", nullable=true)
  54.      */
  55.     private $payresponse;
  56.     /**
  57.      * @var string
  58.      *
  59.      * @ORM\Column(name="emissionData", type="text", nullable=true)
  60.      */
  61.     private $emissiondata;
  62.     /**
  63.      * @var string
  64.      *
  65.      * @ORM\Column(name="addProductData", type="text", nullable=true)
  66.      */
  67.     private $addproductdata;
  68.     /**
  69.      * @var string
  70.      *
  71.      * @ORM\Column(name="updatePaymentData", type="text", nullable=true)
  72.      */
  73.     private $updatepaymentdata;
  74.     /**
  75.      * @var \DateTime
  76.      *
  77.      * @ORM\Column(name="creationDate", type="datetime", nullable=false)
  78.      */
  79.     private $creationdate;
  80.     /**
  81.      * @var \DateTime
  82.      *
  83.      * @ORM\Column(name="updatingDate", type="datetime", nullable=false)
  84.      */
  85.     private $updatingdate;
  86.     /**
  87.      * @var string
  88.      *
  89.      * @ORM\Column(name="status", type="string", nullable=false)
  90.      */
  91.     private $status;
  92.     /**
  93.      * @var string
  94.      *
  95.      * @ORM\Column(name="publicKey", type="string", length=255, nullable=true)
  96.      */
  97.     private $publickey;
  98.     /**
  99.      * @var string
  100.      *
  101.      * @ORM\Column(name="resume", type="text", nullable=true)
  102.      */
  103.     private $resume;
  104.     /**
  105.      * @var string
  106.      *
  107.      * @ORM\Column(name="email", type="text", nullable=true)
  108.      */
  109.     private $email;
  110.     /**
  111.      *
  112.      * @ORM\ManyToOne(targetEntity="Order", inversedBy="orderProduct")
  113.      * @ORM\JoinColumns({
  114.      *   @ORM\JoinColumn(name="order_id", referencedColumnName="id")
  115.      * })
  116.      */
  117.     private ?\Aviatur\GeneralBundle\Entity\Order $order null;
  118.     /**
  119.      *
  120.      * @ORM\ManyToOne(targetEntity="Aviatur\MpaBundle\Entity\Provider", inversedBy="orderProduct")
  121.      * @ORM\JoinColumns({
  122.      *   @ORM\JoinColumn(name="provider_id", referencedColumnName="id")
  123.      * })
  124.      */
  125.     private ?\Aviatur\MpaBundle\Entity\Provider $provider null;
  126.     /**
  127.      * @ORM\OneToMany(targetEntity="Aviatur\GeneralBundle\Entity\OrderProductBrief", mappedBy="orderProduct", cascade={"all"})
  128.      */
  129.     private $orderProductBrief;
  130.     /**
  131.      * @ORM\OneToMany(targetEntity="Aviatur\AgentBundle\Entity\AgentTransaction", mappedBy="orderProduct", cascade={"all"})
  132.      */
  133.     private $agentTransaction;
  134.     /**
  135.      * @ORM\OneToMany(targetEntity="Aviatur\FlightBundle\Entity\SpecialDiscountReservation", mappedBy="orderProduct", cascade={"all"})
  136.      */
  137.     private ?\Doctrine\ORM\PersistentCollection $specialDiscountReservation null;
  138.     /**
  139.      * @ORM\OneToMany(targetEntity="Aviatur\GeneralBundle\Entity\HistoricalOrderProduct", mappedBy="orderProduct", cascade={"all"})
  140.      */
  141.     private ?\Doctrine\ORM\PersistentCollection $historicalOrderProduct null;
  142.     /**
  143.      * @ORM\OneToMany(targetEntity="Aviatur\GeneralBundle\Entity\PromotionalCodeGift", mappedBy="orderProduct", cascade={"all"})
  144.      */
  145.     private ?\Doctrine\ORM\PersistentCollection $promotionalCodeGift null;
  146.     /**
  147.      * @ORM\OneToMany(targetEntity="Aviatur\GeneralBundle\Entity\PromotionalCodeOrderProduct", mappedBy="orderProduct", cascade={"all"})
  148.      */
  149.     private ?\Doctrine\ORM\PersistentCollection $promotionalCodeOrderProduct null;
  150.     /**
  151.      * @ORM\OneToMany(targetEntity="Aviatur\GeneralBundle\Entity\OrderProductFlightEnvelope", mappedBy="orderProduct", cascade={"all"})
  152.      */
  153.     private $orderProductFlightEnvelope;
  154.     /**
  155.      * Constructor.
  156.      */
  157.     public function __construct()
  158.     {
  159.         $this->orderProductBrief = new \Doctrine\Common\Collections\ArrayCollection();
  160.         $this->agentTransaction = new \Doctrine\Common\Collections\ArrayCollection();
  161.         $this->orderProductFlightEnvelope = new \Doctrine\Common\Collections\ArrayCollection();
  162.     }
  163.     public function __toString()
  164.     {
  165.         $return = (string) 'PN'.$this->getId();
  166.         return $return;
  167.     }
  168.     /**
  169.      * Get id.
  170.      *
  171.      * @return int
  172.      */
  173.     public function getId()
  174.     {
  175.         return $this->id;
  176.     }
  177.     /**
  178.      * Set productidaviatur.
  179.      *
  180.      * @param string $productidaviatur
  181.      *
  182.      * @return OrderProduct
  183.      */
  184.     public function setProductidaviatur($productidaviatur)
  185.     {
  186.         $this->productidaviatur $productidaviatur;
  187.         return $this;
  188.     }
  189.     /**
  190.      * Get productidaviatur.
  191.      *
  192.      * @return string
  193.      */
  194.     public function getProductidaviatur()
  195.     {
  196.         return $this->productidaviatur;
  197.     }
  198.     /**
  199.      * Set description.
  200.      *
  201.      * @param string $description
  202.      *
  203.      * @return OrderProduct
  204.      */
  205.     public function setDescription($description)
  206.     {
  207.         $this->description $description;
  208.         return $this;
  209.     }
  210.     /**
  211.      * Get description.
  212.      *
  213.      * @return string
  214.      */
  215.     public function getDescription()
  216.     {
  217.         return $this->description;
  218.     }
  219.     /**
  220.      * Set paymentidaviatur.
  221.      *
  222.      * @param string $paymentidaviatur
  223.      *
  224.      * @return OrderProduct
  225.      */
  226.     public function setPaymentidaviatur($paymentidaviatur)
  227.     {
  228.         $this->paymentidaviatur $paymentidaviatur;
  229.         return $this;
  230.     }
  231.     /**
  232.      * Get paymentidaviatur.
  233.      *
  234.      * @return string
  235.      */
  236.     public function getPaymentidaviatur()
  237.     {
  238.         return $this->paymentidaviatur;
  239.     }
  240.     /**
  241.      * Set booking.
  242.      *
  243.      * @param string $booking
  244.      *
  245.      * @return OrderProduct
  246.      */
  247.     public function setBooking($booking)
  248.     {
  249.         $this->booking $booking;
  250.         return $this;
  251.     }
  252.     /**
  253.      * Get booking.
  254.      *
  255.      * @return string
  256.      */
  257.     public function getBooking()
  258.     {
  259.         return $this->booking;
  260.     }
  261.     /**
  262.      * Set payrequest.
  263.      *
  264.      * @param string $payrequest
  265.      *
  266.      * @return OrderProduct
  267.      */
  268.     public function setPayrequest($payrequest)
  269.     {
  270.         $this->payrequest $payrequest;
  271.         return $this;
  272.     }
  273.     /**
  274.      * Get payrequest.
  275.      *
  276.      * @return string
  277.      */
  278.     public function getPayrequest()
  279.     {
  280.         return $this->payrequest;
  281.     }
  282.     /**
  283.      * Set payresponse.
  284.      *
  285.      * @param string $payresponse
  286.      *
  287.      * @return OrderProduct
  288.      */
  289.     public function setPayresponse($payresponse)
  290.     {
  291.         $this->payresponse $payresponse;
  292.         return $this;
  293.     }
  294.     /**
  295.      * Get payresponse.
  296.      *
  297.      * @return string
  298.      */
  299.     public function getPayresponse()
  300.     {
  301.         return $this->payresponse;
  302.     }
  303.     /**
  304.      * Set emissiondata.
  305.      *
  306.      * @param string $emissiondata
  307.      *
  308.      * @return OrderProduct
  309.      */
  310.     public function setEmissiondata($emissiondata)
  311.     {
  312.         $this->emissiondata $emissiondata;
  313.         return $this;
  314.     }
  315.     /**
  316.      * Get emissiondata.
  317.      *
  318.      * @return string
  319.      */
  320.     public function getEmissiondata()
  321.     {
  322.         return $this->emissiondata;
  323.     }
  324.     /**
  325.      * Set addproductdata.
  326.      *
  327.      * @param string $addproductdata
  328.      *
  329.      * @return OrderProduct
  330.      */
  331.     public function setAddproductdata($addproductdata)
  332.     {
  333.         $this->addproductdata $addproductdata;
  334.         return $this;
  335.     }
  336.     /**
  337.      * Get addproductdata.
  338.      *
  339.      * @return string
  340.      */
  341.     public function getAddproductdata()
  342.     {
  343.         return $this->addproductdata;
  344.     }
  345.     /**
  346.      * Set updatepaymentdata.
  347.      *
  348.      * @param string $updatepaymentdata
  349.      *
  350.      * @return OrderProduct
  351.      */
  352.     public function setUpdatepaymentdata($updatepaymentdata)
  353.     {
  354.         $this->updatepaymentdata $updatepaymentdata;
  355.         return $this;
  356.     }
  357.     /**
  358.      * Get updatepaymentdata.
  359.      *
  360.      * @return string
  361.      */
  362.     public function getUpdatepaymentdata()
  363.     {
  364.         return $this->updatepaymentdata;
  365.     }
  366.     /**
  367.      * Set creationdate.
  368.      *
  369.      * @param \DateTime $creationdate
  370.      *
  371.      * @return OrderProduct
  372.      */
  373.     public function setCreationdate($creationdate)
  374.     {
  375.         $this->creationdate $creationdate;
  376.         return $this;
  377.     }
  378.     /**
  379.      * Get creationdate.
  380.      *
  381.      * @return \DateTime
  382.      */
  383.     public function getCreationdate()
  384.     {
  385.         return $this->creationdate;
  386.     }
  387.     /**
  388.      * Set updatingdate.
  389.      *
  390.      * @param \DateTime $updatingdate
  391.      *
  392.      * @return OrderProduct
  393.      */
  394.     public function setUpdatingdate($updatingdate)
  395.     {
  396.         $this->updatingdate $updatingdate;
  397.         return $this;
  398.     }
  399.     /**
  400.      * Get updatingdate.
  401.      *
  402.      * @return \DateTime
  403.      */
  404.     public function getUpdatingdate()
  405.     {
  406.         return $this->updatingdate;
  407.     }
  408.     /**
  409.      * Set status.
  410.      *
  411.      * @param string $status
  412.      *
  413.      * @return OrderProduct
  414.      */
  415.     public function setStatus($status)
  416.     {
  417.         $this->status $status;
  418.         return $this;
  419.     }
  420.     /**
  421.      * Get status.
  422.      *
  423.      * @return string
  424.      */
  425.     public function getStatus()
  426.     {
  427.         return $this->status;
  428.     }
  429.     /**
  430.      * Set publickey.
  431.      *
  432.      * @param string $publickey
  433.      *
  434.      * @return OrderProduct
  435.      */
  436.     public function setPublickey($publickey)
  437.     {
  438.         $this->publickey $publickey;
  439.         return $this;
  440.     }
  441.     /**
  442.      * Get publickey.
  443.      *
  444.      * @return string
  445.      */
  446.     public function getPublickey()
  447.     {
  448.         return $this->publickey;
  449.     }
  450.     /**
  451.      * Set order.
  452.      *
  453.      * @param \Aviatur\GeneralBundle\Entity\Order $order
  454.      *
  455.      * @return OrderProduct
  456.      */
  457.     public function setOrder(\Aviatur\GeneralBundle\Entity\Order $order null)
  458.     {
  459.         $this->order $order;
  460.         return $this;
  461.     }
  462.     /**
  463.      * Get order.
  464.      *
  465.      * @return \Aviatur\GeneralBundle\Entity\Order
  466.      */
  467.     public function getOrder()
  468.     {
  469.         return $this->order;
  470.     }
  471.     /**
  472.      * Set provider.
  473.      *
  474.      * @param \Aviatur\MpaBundle\Entity\Provider $provider
  475.      *
  476.      * @return OrderProduct
  477.      */
  478.     public function setProvider(\Aviatur\MpaBundle\Entity\Provider $provider null)
  479.     {
  480.         $this->provider $provider;
  481.         return $this;
  482.     }
  483.     /**
  484.      * Get provider.
  485.      *
  486.      * @return \Aviatur\MpaBundle\Entity\Provider
  487.      */
  488.     public function getProvider()
  489.     {
  490.         return $this->provider;
  491.     }
  492.     /**
  493.      * Set resume.
  494.      *
  495.      * @param string $resume
  496.      *
  497.      * @return OrderProduct
  498.      */
  499.     public function setResume($resume)
  500.     {
  501.         $this->resume $resume;
  502.         return $this;
  503.     }
  504.     /**
  505.      * Get resume.
  506.      *
  507.      * @return string
  508.      */
  509.     public function getResume()
  510.     {
  511.         return $this->resume;
  512.     }
  513.     /**
  514.      * Set email.
  515.      *
  516.      * @param string $email
  517.      *
  518.      * @return OrderProduct
  519.      */
  520.     public function setEmail($email)
  521.     {
  522.         $this->email $email;
  523.         return $this;
  524.     }
  525.     /**
  526.      * Get email.
  527.      *
  528.      * @return string
  529.      */
  530.     public function getEmail()
  531.     {
  532.         return $this->email;
  533.     }
  534.     /**
  535.      * Add orderProductBrief.
  536.      *
  537.      * @return OrderProduct
  538.      */
  539.     public function addOrderProductBrief(\Aviatur\GeneralBundle\Entity\OrderProductBrief $orderProductBrief)
  540.     {
  541.         $this->orderProductBrief[] = $orderProductBrief;
  542.         return $this;
  543.     }
  544.     /**
  545.      * Remove orderProductBrief.
  546.      */
  547.     public function removeOrderProductBrief(\Aviatur\GeneralBundle\Entity\OrderProductBrief $orderProductBrief)
  548.     {
  549.         $this->orderProductBrief->removeElement($orderProductBrief);
  550.     }
  551.     /**
  552.      * Get orderProductBrief.
  553.      *
  554.      * @return \Doctrine\Common\Collections\Collection
  555.      */
  556.     public function getOrderProductBrief()
  557.     {
  558.         return $this->orderProductBrief;
  559.     }
  560.     /**
  561.      * Add agentTransaction.
  562.      *
  563.      * @return OrderProduct
  564.      */
  565.     public function addAgentTransaction(\Aviatur\AgentBundle\Entity\AgentTransaction $agentTransaction)
  566.     {
  567.         $this->agentTransaction[] = $agentTransaction;
  568.         return $this;
  569.     }
  570.     /**
  571.      * Remove agentTransaction.
  572.      */
  573.     public function removeAgentTransaction(\Aviatur\AgentBundle\Entity\AgentTransaction $agentTransaction)
  574.     {
  575.         $this->agentTransaction->removeElement($agentTransaction);
  576.     }
  577.     /**
  578.      * Get agentTransaction.
  579.      *
  580.      * @return \Doctrine\Common\Collections\Collection
  581.      */
  582.     public function getAgentTransaction()
  583.     {
  584.         return $this->agentTransaction;
  585.     }
  586.     /**
  587.      * Add specialDiscountReservation.
  588.      *
  589.      * @return OrderProduct
  590.      */
  591.     public function addSpecialDiscountReservation(\Aviatur\FlightBundle\Entity\SpecialDiscountReservation $specialDiscountReservation)
  592.     {
  593.         $this->specialDiscountReservation[] = $specialDiscountReservation;
  594.         return $this;
  595.     }
  596.     /**
  597.      * Remove specialDiscountReservation.
  598.      */
  599.     public function removeSpecialDiscountReservation(\Aviatur\FlightBundle\Entity\SpecialDiscountReservation $specialDiscountReservation)
  600.     {
  601.         $this->specialDiscountReservation->removeElement($specialDiscountReservation);
  602.     }
  603.     /**
  604.      * Get specialDiscountReservation.
  605.      *
  606.      * @return \Doctrine\Common\Collections\Collection
  607.      */
  608.     public function getSpecialDiscountReservation()
  609.     {
  610.         return $this->specialDiscountReservation;
  611.     }
  612.     /**
  613.      * Add historicalOrderProduct.
  614.      *
  615.      * @return OrderProduct
  616.      */
  617.     public function addHistoricalOrderProduct(\Aviatur\GeneralBundle\Entity\HistoricalOrderProduct $historicalOrderProduct)
  618.     {
  619.         $this->historicalOrderProduct[] = $historicalOrderProduct;
  620.         return $this;
  621.     }
  622.     /**
  623.      * Remove historicalOrderProduct.
  624.      */
  625.     public function removeHistoricalOrderProduct(\Aviatur\GeneralBundle\Entity\HistoricalOrderProduct $historicalOrderProduct)
  626.     {
  627.         $this->historicalOrderProduct->removeElement($historicalOrderProduct);
  628.     }
  629.     /**
  630.      * Get historicalOrderProduct.
  631.      *
  632.      * @return \Doctrine\Common\Collections\Collection
  633.      */
  634.     public function getHistoricalOrderProduct()
  635.     {
  636.         return $this->historicalOrderProduct;
  637.     }
  638.     /**
  639.      * Add promotionalCodeGift.
  640.      *
  641.      * @return OrderProduct
  642.      */
  643.     public function addPromotionalCodeGift(\Aviatur\GeneralBundle\Entity\PromotionalCodeGift $promotionalCodeGift)
  644.     {
  645.         $this->promotionalCodeGift[] = $promotionalCodeGift;
  646.         return $this;
  647.     }
  648.     /**
  649.      * Remove promotionalCodeGift.
  650.      */
  651.     public function removePromotionalCodeGift(\Aviatur\GeneralBundle\Entity\PromotionalCodeGift $promotionalCodeGift)
  652.     {
  653.         $this->promotionalCodeGift->removeElement($promotionalCodeGift);
  654.     }
  655.     /**
  656.      * Get promotionalCodeGift.
  657.      *
  658.      * @return \Doctrine\Common\Collections\Collection
  659.      */
  660.     public function getPromotionalCodeGift()
  661.     {
  662.         return $this->promotionalCodeGift;
  663.     }
  664.     /**
  665.      * Add promotionalCodeOrderProduct.
  666.      *
  667.      * @return OrderProduct
  668.      */
  669.     public function addPromotionalCodeOrderProduct(\Aviatur\GeneralBundle\Entity\PromotionalCodeOrderProduct $promotionalCodeOrderProduct)
  670.     {
  671.         $this->promotionalCodeOrderProduct[] = $promotionalCodeOrderProduct;
  672.         return $this;
  673.     }
  674.     /**
  675.      * Remove promotionalCodeOrderProduct.
  676.      */
  677.     public function removePromotionalCodeOrderProduct(\Aviatur\GeneralBundle\Entity\PromotionalCodeOrderProduct $promotionalCodeOrderProduct)
  678.     {
  679.         $this->promotionalCodeOrderProduct->removeElement($promotionalCodeOrderProduct);
  680.     }
  681.     /**
  682.      * Get promotionalCodeOrderProduct.
  683.      *
  684.      * @return \Doctrine\Common\Collections\Collection
  685.      */
  686.     public function getPromotionalCodeOrderProduct()
  687.     {
  688.         return $this->promotionalCodeOrderProduct;
  689.     }
  690.     /**
  691.      * Add orderProductFlightEnvelope.
  692.      *
  693.      * @return Order
  694.      */
  695.     public function addOrderProductFlightEnvelope(\Aviatur\GeneralBundle\Entity\OrderProductFlightEnvelope $orderProductFlightEnvelope)
  696.     {
  697.         $this->orderProductFlightEnvelope[] = $orderProductFlightEnvelope;
  698.         return $this;
  699.     }
  700.     /**
  701.      * Remove orderProductFlightEnvelope.
  702.      */
  703.     public function removeOrderProductFlightEnvelope(\Aviatur\GeneralBundle\Entity\OrderProductFlightEnvelope $orderProductFlightEnvelope)
  704.     {
  705.         $this->orderProductFlightEnvelope->removeElement($orderProductFlightEnvelope);
  706.     }
  707.     /**
  708.      * Get orderProductFlightEnvelope.
  709.      *
  710.      * @return \Doctrine\Common\Collections\Collection
  711.      */
  712.     public function getOrderProductFlightEnvelope()
  713.     {
  714.         return $this->orderProductFlightEnvelope;
  715.     }
  716. }