<?php
namespace Aviatur\GeneralBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* HistoricalOrderProduct.
*
* @ORM\Table(name="historical_order_product")
* @ORM\Entity(repositoryClass="Aviatur\GeneralBundle\Entity\HistoricalOrderProductRepository")
*/
class HistoricalOrderProduct
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @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 \DateTime
*
* @ORM\Column(name="updatingDate", type="datetime", nullable=false)
*/
private $updatingdate;
/**
*
* @ORM\ManyToOne(targetEntity="Aviatur\GeneralBundle\Entity\OrderProduct", inversedBy="historicalOrderProduct")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="order_product_id", referencedColumnName="id")
* })
*/
private ?\Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct = null;
/**
* @var string
*
* @ORM\Column(name="publicKey", type="string", length=255, nullable=true)
*/
private $publickey;
/**
* Get id.
*
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Set payrequest.
*
* @param string $payrequest
*
* @return HistoricalOrderProduct
*/
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 HistoricalOrderProduct
*/
public function setPayresponse($payresponse)
{
$this->payresponse = $payresponse;
return $this;
}
/**
* Get payresponse.
*
* @return string
*/
public function getPayresponse()
{
return $this->payresponse;
}
/**
* Set updatingdate.
*
* @param \DateTime $updatingdate
*
* @return HistoricalOrderProduct
*/
public function setUpdatingdate($updatingdate)
{
$this->updatingdate = $updatingdate;
return $this;
}
/**
* Get updatingdate.
*
* @return \DateTime
*/
public function getUpdatingdate()
{
return $this->updatingdate;
}
/**
* Set publickey.
*
* @param string $publickey
*
* @return HistoricalOrderProduct
*/
public function setPublickey($publickey)
{
$this->publickey = $publickey;
return $this;
}
/**
* Get publickey.
*
* @return string
*/
public function getPublickey()
{
return $this->publickey;
}
/**
* Set orderProduct.
*
* @param \Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct
*
* @return HistoricalOrderProduct
*/
public function setOrderProduct(\Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct = null)
{
$this->orderProduct = $orderProduct;
return $this;
}
/**
* Get orderProduct.
*
* @return \Aviatur\GeneralBundle\Entity\OrderProduct
*/
public function getOrderProduct()
{
return $this->orderProduct;
}
}