<?php
namespace Customize\Entity;
use Doctrine\ORM\Mapping as ORM;
use Eccube\Annotation\EntityExtension;
/**
* @EntityExtension("Eccube\Entity\OrderItem")
*/
trait OrderItemTrait
{
/**
* @var \Customize\Entity\DeliveryPeriod
*
* @ORM\ManyToOne(targetEntity="\Customize\Entity\DeliveryPeriod")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="delivery_period_id", referencedColumnName="delivery_period_id")
* })
*/
private $DeliveryPeriod;
/**
* @var string
*
* @ORM\Column(name="set_product_class", type="string" , nullable=true)
*/
private $set_product_class;
/**
* @var string
*
* @ORM\Column(name="set_product_price", type="json" , nullable=true)
*/
private $set_product_price;
/**
* @var \Customize\Entity\Brother
*
* @ORM\ManyToOne(targetEntity="\Customize\Entity\Brother")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="brother_id", referencedColumnName="id")
* })
*/
private $Brother;
/**
* Set DeliveryPeriod
*
* @param \Customize\Entity\DeliveryPeriod $deliveryPeriod
*
* @return OrderItem
*/
public function setDeliveryPeriod(\Customize\Entity\DeliveryPeriod $deliveryPeriod = null)
{
$this->DeliveryPeriod = $deliveryPeriod;
return $this;
}
/**
* Get DeliveryPeriod
*
* @return \Customize\Entity\DeliveryPeriod
*/
public function getDeliveryPeriod()
{
return $this->DeliveryPeriod;
}
/**
* Set set_product_class.
*
* @param array $set_product_class
*
* @return CartItem
*/
public function setSetProductClass($setProductClass)
{
$this->set_product_class = implode(',', $setProductClass);
return $this;
}
/**
* Get set_product_class.
*
* @return string
*/
public function getSetProductClass()
{
return explode(',', $this->set_product_class);
}
/**
* Set set_product_price.
*
* @param array $set_product_price
*
*/
public function setSetProductPrice($setProductPrice)
{
$this->set_product_price = $setProductPrice;
return $this;
}
/**
* Get get_product_price.
*
* @return string
*/
public function getSetProductPrice()
{
return $this->set_product_price;
}
/**
* @var string
*
* @ORM\Column(name="remarks", type="string" , nullable=true)
*/
private $remarks;
/**
* Set remarks.
*
* @param string $remarks
*
* @return OrderItem
*/
public function setRemarks($remarks)
{
$this->remarks = $remarks;
return $this;
}
/**
* Get remarks.
*
* @return string
*/
public function getRemarks()
{
return $this->remarks;
}
/**
* Set Brother.
*
* @param \Customize\Entity\Brother $Brother
*
* @return CartItem
*/
public function setBrother($Brother)
{
$this->Brother = $Brother;
return $this;
}
/**
* Get \Eccube\Entity\CartItem.
*
* @return string
*/
public function getBrother()
{
return $this->Brother;
}
}