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

Open in your IDE?
  1. <?php
  2. namespace Aviatur\GeneralBundle\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Card.
  6.  *
  7.  * @ORM\Table(name="promotional_code_order_product")
  8.  * @ORM\Entity(repositoryClass="Aviatur\GeneralBundle\Entity\PromotionalCodeOrderRepository")
  9.  */
  10. class PromotionalCodeOrderProduct
  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.      * @var string
  22.      *
  23.      * @ORM\Column(name="code", type="string", length=255)
  24.      */
  25.     private $code;
  26.     /**
  27.      *
  28.      * @ORM\ManyToOne(targetEntity="OrderProduct", inversedBy="promotionalCodeOrderProduct")
  29.      * @ORM\JoinColumns({
  30.      *   @ORM\JoinColumn(name="order_product_id", referencedColumnName="id")
  31.      * })
  32.      */
  33.     private ?\Aviatur\GeneralBundle\Entity\OrderProduct $orderProduct null;
  34.     /**
  35.      * Get id.
  36.      *
  37.      * @return int
  38.      */
  39.     public function getId()
  40.     {
  41.         return $this->id;
  42.     }
  43.     /**
  44.      * Set code.
  45.      *
  46.      * @param string $code
  47.      *
  48.      * @return PromotionalCodeOrderProduct
  49.      */
  50.     public function setCode($code)
  51.     {
  52.         $this->code $code;
  53.         return $this;
  54.     }
  55.     /**
  56.      * Get code.
  57.      *
  58.      * @return string
  59.      */
  60.     public function getCode()
  61.     {
  62.         return $this->code;
  63.     }
  64.     /**
  65.      * Set orderProduct.
  66.      *
  67.      * @param \Aviatur\GeneralBundle\Entity\Order $order
  68.      *
  69.      * @return PromotionalCodeOrderProduct
  70.      */
  71.     public function setOrderProduct(\Aviatur\GeneralBundle\Entity\OrderProduct $order null)
  72.     {
  73.         $this->orderProduct $order;
  74.         return $this;
  75.     }
  76.     /**
  77.      * Get orderProduct.
  78.      *
  79.      * @return \Aviatur\GeneralBundle\Entity\Order
  80.      */
  81.     public function getOrderProduct()
  82.     {
  83.         return $this->orderProduct;
  84.     }
  85. }