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

Open in your IDE?
  1. <?php
  2. namespace Aviatur\GeneralBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * PromotionalCodeGift.
  6.  *
  7.  * @ORM\Table(name="promotional_code_gift")
  8.  * @ORM\Entity(repositoryClass="Aviatur\GeneralBundle\Entity\PromotionalCodeGiftRepository")
  9.  */
  10. class PromotionalCodeGift
  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.      *
  22.      * @ORM\ManyToOne(targetEntity="Aviatur\GeneralBundle\Entity\OrderProduct", inversedBy="promotionalCodeGift")
  23.      * @ORM\JoinColumns({
  24.      *   @ORM\JoinColumn(name="order_product_id", referencedColumnName="id")
  25.      * })
  26.      */
  27.     private ?\Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct null;
  28.     /**
  29.      * @var string
  30.      *
  31.      * @ORM\Column(name="code", type="string", length=100)
  32.      */
  33.     private $code;
  34.     /**
  35.      * @var bool
  36.      *
  37.      * @ORM\Column(name="status", type="boolean", nullable=false)
  38.      */
  39.     private $status;
  40.     /**
  41.      * Get id.
  42.      *
  43.      * @return int
  44.      */
  45.     public function getId()
  46.     {
  47.         return $this->id;
  48.     }
  49.     /**
  50.      * Set code.
  51.      *
  52.      * @param string $code
  53.      *
  54.      * @return PromotionalCodeGift
  55.      */
  56.     public function setCode($code)
  57.     {
  58.         $this->code $code;
  59.         return $this;
  60.     }
  61.     /**
  62.      * Get code.
  63.      *
  64.      * @return string
  65.      */
  66.     public function getCode()
  67.     {
  68.         return $this->code;
  69.     }
  70.     /**
  71.      * Set status.
  72.      *
  73.      * @param bool $status
  74.      *
  75.      * @return PromotionalCodeGift
  76.      */
  77.     public function setStatus($status)
  78.     {
  79.         $this->status $status;
  80.         return $this;
  81.     }
  82.     /**
  83.      * Get status.
  84.      *
  85.      * @return string
  86.      */
  87.     public function getStatus()
  88.     {
  89.         return $this->status;
  90.     }
  91.     /**
  92.      * Set orderProduct.
  93.      *
  94.      * @param \Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct
  95.      *
  96.      * @return PromotionalCodeGift
  97.      */
  98.     public function setOrderProduct(\Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct null)
  99.     {
  100.         $this->orderProduct $orderProduct;
  101.         return $this;
  102.     }
  103.     /**
  104.      * Get orderProduct.
  105.      *
  106.      * @return \Aviatur\GeneralBundle\Entity\OrderProduct
  107.      */
  108.     public function getOrderProduct()
  109.     {
  110.         return $this->orderProduct;
  111.     }
  112. }