<?php
/*
* This file is part of EC-CUBE
*
* Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
*
* http://www.ec-cube.co.jp/
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Customize\Entity;
use Doctrine\ORM\Mapping as ORM;
if (!class_exists('\Customize\Entity\ConfirmDelivery')) {
/**
* StepOption
* @ORM\Table(name="dtb_confirm_delivery")
* @ORM\Entity(repositoryClass="Customize\Repository\ConfirmDeliveryRepository")
*/
class ConfirmDelivery extends \Eccube\Entity\AbstractEntity
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer", options={"unsigned":true})
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="option_ids", type="string", nullable=true, length=255)
* @ORM\GeneratedValue(strategy="NONE")
*/
private $option_ids;
/**
* @var int
*
* @ORM\Column(name="product_id", type="integer", nullable=false, options={"unsigned":true})
* @ORM\GeneratedValue(strategy="NONE")
*/
private $product_id;
public function setId($id)
{
$this->id = $id;
return $this;
}
public function getId()
{
return $this->id;
}
public function getOptionIdArray()
{
preg_match_all('!\d+!', trim($this->option_ids), $optionIds);
return $optionIds[0];
}
public function setOptionIds($option_ids)
{
$this->option_ids = $option_ids;
return $this;
}
public function getOptionIds()
{
return $this->option_ids;
}
public function setProductId($product_id)
{
$this->product_id = $product_id;
return $this;
}
public function getProductId()
{
return $this->product_id;
}
}
}