<?php
namespace Aviatur\GeneralBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* OrderProduct.
*
* @ORM\Table(name="order_product", indexes={@ORM\Index(name="IDX_3E7A119F8D9F6D38", columns={"order_id"}), @ORM\Index(name="provider_id", columns={"provider_id"})})
* @ORM\Entity(repositoryClass="Aviatur\GeneralBundle\Entity\OrderProductRepository")
*/
class OrderProduct
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="productIdAviatur", type="string", length=255, nullable=true)
*/
private $productidaviatur;
/**
* @var string
*
* @ORM\Column(name="description", type="string", length=255, nullable=false)
*/
private $description;
/**
* @var string
*
* @ORM\Column(name="paymentidaviatur", type="string", length=500, nullable=true)
*/
private $paymentidaviatur;
/**
* @var string
*
* @ORM\Column(name="booking", type="string", length=100, nullable=true)
*/
private $booking;
/**
* @var string
*
* @ORM\Column(name="payRequest", type="text", nullable=true)
*/
private $payrequest;
/**
* @var string
*
* @ORM\Column(name="payResponse", type="text", nullable=true)
*/
private $payresponse;
/**
* @var string
*
* @ORM\Column(name="emissionData", type="text", nullable=true)
*/
private $emissiondata;
/**
* @var string
*
* @ORM\Column(name="addProductData", type="text", nullable=true)
*/
private $addproductdata;
/**
* @var string
*
* @ORM\Column(name="updatePaymentData", type="text", nullable=true)
*/
private $updatepaymentdata;
/**
* @var \DateTime
*
* @ORM\Column(name="creationDate", type="datetime", nullable=false)
*/
private $creationdate;
/**
* @var \DateTime
*
* @ORM\Column(name="updatingDate", type="datetime", nullable=false)
*/
private $updatingdate;
/**
* @var string
*
* @ORM\Column(name="status", type="string", nullable=false)
*/
private $status;
/**
* @var string
*
* @ORM\Column(name="publicKey", type="string", length=255, nullable=true)
*/
private $publickey;
/**
* @var string
*
* @ORM\Column(name="resume", type="text", nullable=true)
*/
private $resume;
/**
* @var string
*
* @ORM\Column(name="email", type="text", nullable=true)
*/
private $email;
/**
*
* @ORM\ManyToOne(targetEntity="Order", inversedBy="orderProduct")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="order_id", referencedColumnName="id")
* })
*/
private ?\Aviatur\GeneralBundle\Entity\Order $order = null;
/**
*
* @ORM\ManyToOne(targetEntity="Aviatur\MpaBundle\Entity\Provider", inversedBy="orderProduct")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="provider_id", referencedColumnName="id")
* })
*/
private ?\Aviatur\MpaBundle\Entity\Provider $provider = null;
/**
* @ORM\OneToMany(targetEntity="Aviatur\GeneralBundle\Entity\OrderProductBrief", mappedBy="orderProduct", cascade={"all"})
*/
private $orderProductBrief;
/**
* @ORM\OneToMany(targetEntity="Aviatur\AgentBundle\Entity\AgentTransaction", mappedBy="orderProduct", cascade={"all"})
*/
private $agentTransaction;
/**
* @ORM\OneToMany(targetEntity="Aviatur\FlightBundle\Entity\SpecialDiscountReservation", mappedBy="orderProduct", cascade={"all"})
*/
private ?\Doctrine\ORM\PersistentCollection $specialDiscountReservation = null;
/**
* @ORM\OneToMany(targetEntity="Aviatur\GeneralBundle\Entity\HistoricalOrderProduct", mappedBy="orderProduct", cascade={"all"})
*/
private ?\Doctrine\ORM\PersistentCollection $historicalOrderProduct = null;
/**
* @ORM\OneToMany(targetEntity="Aviatur\GeneralBundle\Entity\PromotionalCodeGift", mappedBy="orderProduct", cascade={"all"})
*/
private ?\Doctrine\ORM\PersistentCollection $promotionalCodeGift = null;
/**
* @ORM\OneToMany(targetEntity="Aviatur\GeneralBundle\Entity\PromotionalCodeOrderProduct", mappedBy="orderProduct", cascade={"all"})
*/
private ?\Doctrine\ORM\PersistentCollection $promotionalCodeOrderProduct = null;
/**
* @ORM\OneToMany(targetEntity="Aviatur\GeneralBundle\Entity\OrderProductFlightEnvelope", mappedBy="orderProduct", cascade={"all"})
*/
private $orderProductFlightEnvelope;
/**
* Constructor.
*/
public function __construct()
{
$this->orderProductBrief = new \Doctrine\Common\Collections\ArrayCollection();
$this->agentTransaction = new \Doctrine\Common\Collections\ArrayCollection();
$this->orderProductFlightEnvelope = new \Doctrine\Common\Collections\ArrayCollection();
}
public function __toString()
{
$return = (string) 'PN'.$this->getId();
return $return;
}
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set productidaviatur.
*
* @param string $productidaviatur
*
* @return OrderProduct
*/
public function setProductidaviatur($productidaviatur)
{
$this->productidaviatur = $productidaviatur;
return $this;
}
/**
* Get productidaviatur.
*
* @return string
*/
public function getProductidaviatur()
{
return $this->productidaviatur;
}
/**
* Set description.
*
* @param string $description
*
* @return OrderProduct
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get description.
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set paymentidaviatur.
*
* @param string $paymentidaviatur
*
* @return OrderProduct
*/
public function setPaymentidaviatur($paymentidaviatur)
{
$this->paymentidaviatur = $paymentidaviatur;
return $this;
}
/**
* Get paymentidaviatur.
*
* @return string
*/
public function getPaymentidaviatur()
{
return $this->paymentidaviatur;
}
/**
* Set booking.
*
* @param string $booking
*
* @return OrderProduct
*/
public function setBooking($booking)
{
$this->booking = $booking;
return $this;
}
/**
* Get booking.
*
* @return string
*/
public function getBooking()
{
return $this->booking;
}
/**
* Set payrequest.
*
* @param string $payrequest
*
* @return OrderProduct
*/
public function setPayrequest($payrequest)
{
$this->payrequest = $payrequest;
return $this;
}
/**
* Get payrequest.
*
* @return string
*/
public function getPayrequest()
{
return $this->payrequest;
}
/**
* Set payresponse.
*
* @param string $payresponse
*
* @return OrderProduct
*/
public function setPayresponse($payresponse)
{
$this->payresponse = $payresponse;
return $this;
}
/**
* Get payresponse.
*
* @return string
*/
public function getPayresponse()
{
return $this->payresponse;
}
/**
* Set emissiondata.
*
* @param string $emissiondata
*
* @return OrderProduct
*/
public function setEmissiondata($emissiondata)
{
$this->emissiondata = $emissiondata;
return $this;
}
/**
* Get emissiondata.
*
* @return string
*/
public function getEmissiondata()
{
return $this->emissiondata;
}
/**
* Set addproductdata.
*
* @param string $addproductdata
*
* @return OrderProduct
*/
public function setAddproductdata($addproductdata)
{
$this->addproductdata = $addproductdata;
return $this;
}
/**
* Get addproductdata.
*
* @return string
*/
public function getAddproductdata()
{
return $this->addproductdata;
}
/**
* Set updatepaymentdata.
*
* @param string $updatepaymentdata
*
* @return OrderProduct
*/
public function setUpdatepaymentdata($updatepaymentdata)
{
$this->updatepaymentdata = $updatepaymentdata;
return $this;
}
/**
* Get updatepaymentdata.
*
* @return string
*/
public function getUpdatepaymentdata()
{
return $this->updatepaymentdata;
}
/**
* Set creationdate.
*
* @param \DateTime $creationdate
*
* @return OrderProduct
*/
public function setCreationdate($creationdate)
{
$this->creationdate = $creationdate;
return $this;
}
/**
* Get creationdate.
*
* @return \DateTime
*/
public function getCreationdate()
{
return $this->creationdate;
}
/**
* Set updatingdate.
*
* @param \DateTime $updatingdate
*
* @return OrderProduct
*/
public function setUpdatingdate($updatingdate)
{
$this->updatingdate = $updatingdate;
return $this;
}
/**
* Get updatingdate.
*
* @return \DateTime
*/
public function getUpdatingdate()
{
return $this->updatingdate;
}
/**
* Set status.
*
* @param string $status
*
* @return OrderProduct
*/
public function setStatus($status)
{
$this->status = $status;
return $this;
}
/**
* Get status.
*
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* Set publickey.
*
* @param string $publickey
*
* @return OrderProduct
*/
public function setPublickey($publickey)
{
$this->publickey = $publickey;
return $this;
}
/**
* Get publickey.
*
* @return string
*/
public function getPublickey()
{
return $this->publickey;
}
/**
* Set order.
*
* @param \Aviatur\GeneralBundle\Entity\Order $order
*
* @return OrderProduct
*/
public function setOrder(\Aviatur\GeneralBundle\Entity\Order $order = null)
{
$this->order = $order;
return $this;
}
/**
* Get order.
*
* @return \Aviatur\GeneralBundle\Entity\Order
*/
public function getOrder()
{
return $this->order;
}
/**
* Set provider.
*
* @param \Aviatur\MpaBundle\Entity\Provider $provider
*
* @return OrderProduct
*/
public function setProvider(\Aviatur\MpaBundle\Entity\Provider $provider = null)
{
$this->provider = $provider;
return $this;
}
/**
* Get provider.
*
* @return \Aviatur\MpaBundle\Entity\Provider
*/
public function getProvider()
{
return $this->provider;
}
/**
* Set resume.
*
* @param string $resume
*
* @return OrderProduct
*/
public function setResume($resume)
{
$this->resume = $resume;
return $this;
}
/**
* Get resume.
*
* @return string
*/
public function getResume()
{
return $this->resume;
}
/**
* Set email.
*
* @param string $email
*
* @return OrderProduct
*/
public function setEmail($email)
{
$this->email = $email;
return $this;
}
/**
* Get email.
*
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Add orderProductBrief.
*
* @return OrderProduct
*/
public function addOrderProductBrief(\Aviatur\GeneralBundle\Entity\OrderProductBrief $orderProductBrief)
{
$this->orderProductBrief[] = $orderProductBrief;
return $this;
}
/**
* Remove orderProductBrief.
*/
public function removeOrderProductBrief(\Aviatur\GeneralBundle\Entity\OrderProductBrief $orderProductBrief)
{
$this->orderProductBrief->removeElement($orderProductBrief);
}
/**
* Get orderProductBrief.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getOrderProductBrief()
{
return $this->orderProductBrief;
}
/**
* Add agentTransaction.
*
* @return OrderProduct
*/
public function addAgentTransaction(\Aviatur\AgentBundle\Entity\AgentTransaction $agentTransaction)
{
$this->agentTransaction[] = $agentTransaction;
return $this;
}
/**
* Remove agentTransaction.
*/
public function removeAgentTransaction(\Aviatur\AgentBundle\Entity\AgentTransaction $agentTransaction)
{
$this->agentTransaction->removeElement($agentTransaction);
}
/**
* Get agentTransaction.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getAgentTransaction()
{
return $this->agentTransaction;
}
/**
* Add specialDiscountReservation.
*
* @return OrderProduct
*/
public function addSpecialDiscountReservation(\Aviatur\FlightBundle\Entity\SpecialDiscountReservation $specialDiscountReservation)
{
$this->specialDiscountReservation[] = $specialDiscountReservation;
return $this;
}
/**
* Remove specialDiscountReservation.
*/
public function removeSpecialDiscountReservation(\Aviatur\FlightBundle\Entity\SpecialDiscountReservation $specialDiscountReservation)
{
$this->specialDiscountReservation->removeElement($specialDiscountReservation);
}
/**
* Get specialDiscountReservation.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getSpecialDiscountReservation()
{
return $this->specialDiscountReservation;
}
/**
* Add historicalOrderProduct.
*
* @return OrderProduct
*/
public function addHistoricalOrderProduct(\Aviatur\GeneralBundle\Entity\HistoricalOrderProduct $historicalOrderProduct)
{
$this->historicalOrderProduct[] = $historicalOrderProduct;
return $this;
}
/**
* Remove historicalOrderProduct.
*/
public function removeHistoricalOrderProduct(\Aviatur\GeneralBundle\Entity\HistoricalOrderProduct $historicalOrderProduct)
{
$this->historicalOrderProduct->removeElement($historicalOrderProduct);
}
/**
* Get historicalOrderProduct.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getHistoricalOrderProduct()
{
return $this->historicalOrderProduct;
}
/**
* Add promotionalCodeGift.
*
* @return OrderProduct
*/
public function addPromotionalCodeGift(\Aviatur\GeneralBundle\Entity\PromotionalCodeGift $promotionalCodeGift)
{
$this->promotionalCodeGift[] = $promotionalCodeGift;
return $this;
}
/**
* Remove promotionalCodeGift.
*/
public function removePromotionalCodeGift(\Aviatur\GeneralBundle\Entity\PromotionalCodeGift $promotionalCodeGift)
{
$this->promotionalCodeGift->removeElement($promotionalCodeGift);
}
/**
* Get promotionalCodeGift.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getPromotionalCodeGift()
{
return $this->promotionalCodeGift;
}
/**
* Add promotionalCodeOrderProduct.
*
* @return OrderProduct
*/
public function addPromotionalCodeOrderProduct(\Aviatur\GeneralBundle\Entity\PromotionalCodeOrderProduct $promotionalCodeOrderProduct)
{
$this->promotionalCodeOrderProduct[] = $promotionalCodeOrderProduct;
return $this;
}
/**
* Remove promotionalCodeOrderProduct.
*/
public function removePromotionalCodeOrderProduct(\Aviatur\GeneralBundle\Entity\PromotionalCodeOrderProduct $promotionalCodeOrderProduct)
{
$this->promotionalCodeOrderProduct->removeElement($promotionalCodeOrderProduct);
}
/**
* Get promotionalCodeOrderProduct.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getPromotionalCodeOrderProduct()
{
return $this->promotionalCodeOrderProduct;
}
/**
* Add orderProductFlightEnvelope.
*
* @return Order
*/
public function addOrderProductFlightEnvelope(\Aviatur\GeneralBundle\Entity\OrderProductFlightEnvelope $orderProductFlightEnvelope)
{
$this->orderProductFlightEnvelope[] = $orderProductFlightEnvelope;
return $this;
}
/**
* Remove orderProductFlightEnvelope.
*/
public function removeOrderProductFlightEnvelope(\Aviatur\GeneralBundle\Entity\OrderProductFlightEnvelope $orderProductFlightEnvelope)
{
$this->orderProductFlightEnvelope->removeElement($orderProductFlightEnvelope);
}
/**
* Get orderProductFlightEnvelope.
*
* @return \Doctrine\Common\Collections\Collection
*/
public function getOrderProductFlightEnvelope()
{
return $this->orderProductFlightEnvelope;
}
}