<?phpnamespace Aviatur\GeneralBundle\Entity;use Doctrine\ORM\Mapping as ORM;/** * PromotionalCodeGift. * * @ORM\Table(name="promotional_code_gift") * @ORM\Entity(repositoryClass="Aviatur\GeneralBundle\Entity\PromotionalCodeGiftRepository") */class PromotionalCodeGift{ /** * @var int * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * * @ORM\ManyToOne(targetEntity="Aviatur\GeneralBundle\Entity\OrderProduct", inversedBy="promotionalCodeGift") * @ORM\JoinColumns({ * @ORM\JoinColumn(name="order_product_id", referencedColumnName="id") * }) */ private ?\Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct = null; /** * @var string * * @ORM\Column(name="code", type="string", length=100) */ private $code; /** * @var bool * * @ORM\Column(name="status", type="boolean", nullable=false) */ private $status; /** * Get id. * * @return int */ public function getId() { return $this->id; } /** * Set code. * * @param string $code * * @return PromotionalCodeGift */ public function setCode($code) { $this->code = $code; return $this; } /** * Get code. * * @return string */ public function getCode() { return $this->code; } /** * Set status. * * @param bool $status * * @return PromotionalCodeGift */ public function setStatus($status) { $this->status = $status; return $this; } /** * Get status. * * @return string */ public function getStatus() { return $this->status; } /** * Set orderProduct. * * @param \Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct * * @return PromotionalCodeGift */ 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; }}