app/Customize/Entity/OrderItemTrait.php line 92

Open in your IDE?
  1. <?php
  2. namespace Customize\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Eccube\Annotation\EntityExtension;
  5. /**
  6.  * @EntityExtension("Eccube\Entity\OrderItem")
  7.  */
  8. trait OrderItemTrait
  9. {
  10.     /**
  11.      * @var \Customize\Entity\DeliveryPeriod
  12.      *
  13.      * @ORM\ManyToOne(targetEntity="\Customize\Entity\DeliveryPeriod")
  14.      * @ORM\JoinColumns({
  15.      *   @ORM\JoinColumn(name="delivery_period_id", referencedColumnName="delivery_period_id")
  16.      * })
  17.      */
  18.     private $DeliveryPeriod;
  19.     /**
  20.      * @var string
  21.      *
  22.      * @ORM\Column(name="set_product_class", type="string" , nullable=true)
  23.      */
  24.     private $set_product_class;
  25.     /**
  26.      * @var string
  27.      *
  28.      * @ORM\Column(name="set_product_price", type="json" , nullable=true)
  29.      */
  30.     private $set_product_price;
  31.     /**
  32.      * @var \Customize\Entity\Brother
  33.      *
  34.      * @ORM\ManyToOne(targetEntity="\Customize\Entity\Brother")
  35.      * @ORM\JoinColumns({
  36.      *   @ORM\JoinColumn(name="brother_id", referencedColumnName="id")
  37.      * })
  38.      */
  39.     private $Brother;
  40.     /**
  41.      * Set DeliveryPeriod
  42.      *
  43.      * @param \Customize\Entity\DeliveryPeriod $deliveryPeriod
  44.      *
  45.      * @return OrderItem
  46.      */
  47.     public function setDeliveryPeriod(\Customize\Entity\DeliveryPeriod $deliveryPeriod null)
  48.     {
  49.         $this->DeliveryPeriod $deliveryPeriod;
  50.         return $this;
  51.     }
  52.     /**
  53.      * Get DeliveryPeriod
  54.      *
  55.      * @return \Customize\Entity\DeliveryPeriod
  56.      */
  57.     public function getDeliveryPeriod()
  58.     {
  59.         return $this->DeliveryPeriod;
  60.     }
  61.     /**
  62.      * Set set_product_class.
  63.      *
  64.      * @param array $set_product_class
  65.      *
  66.      * @return CartItem
  67.      */
  68.     public function setSetProductClass($setProductClass)
  69.     {
  70.         $this->set_product_class implode(','$setProductClass);
  71.         return $this;
  72.     }
  73.     /**
  74.      * Get set_product_class.
  75.      *
  76.      * @return string
  77.      */
  78.     public function getSetProductClass()
  79.     {
  80.         return explode(','$this->set_product_class);
  81.     }
  82.     /**
  83.      * Set set_product_price.
  84.      *
  85.      * @param array $set_product_price
  86.      *
  87.      */
  88.     public function setSetProductPrice($setProductPrice)
  89.     {
  90.         $this->set_product_price $setProductPrice;
  91.         return $this;
  92.     }
  93.     /**
  94.      * Get get_product_price.
  95.      *
  96.      * @return string
  97.      */
  98.     public function getSetProductPrice()
  99.     {
  100.         return $this->set_product_price;
  101.     }
  102.     /**
  103.      * @var string
  104.      *
  105.      * @ORM\Column(name="remarks", type="string" , nullable=true)
  106.      */
  107.     private $remarks;
  108.     /**
  109.      * Set remarks.
  110.      *
  111.      * @param string $remarks
  112.      *
  113.      * @return OrderItem
  114.      */
  115.     public function setRemarks($remarks)
  116.     {
  117.         $this->remarks $remarks;
  118.         return $this;
  119.     }
  120.     /**
  121.      * Get remarks.
  122.      *
  123.      * @return string
  124.      */
  125.     public function getRemarks()
  126.     {
  127.         return $this->remarks;
  128.     }
  129.     /**
  130.      * Set Brother.
  131.      *
  132.      * @param \Customize\Entity\Brother $Brother
  133.      *
  134.      * @return CartItem
  135.      */
  136.     public function setBrother($Brother)
  137.     {
  138.         $this->Brother $Brother;
  139.         return $this;
  140.     }
  141.     /**
  142.      * Get \Eccube\Entity\CartItem.
  143.      *
  144.      * @return string
  145.      */
  146.     public function getBrother()
  147.     {
  148.         return $this->Brother;
  149.     }
  150. }