<?php
namespace Plugin\RegionalShippingFeePro42\Entity;
use Doctrine\ORM\Mapping as ORM;
use Eccube\Entity\AbstractEntity;
if (!class_exists('\Plugin\RegionalShippingFeePro42\Entity\RegionalShippingFee', false)) {
/**
* RegionalShippingFee
*
* @ORM\Table(name="plg_regional_shipping_fee_pro")
* @ORM\InheritanceType("SINGLE_TABLE")
* @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
* @ORM\HasLifecycleCallbacks()
* @ORM\Entity(repositoryClass="Plugin\RegionalShippingFeePro42\Repository\RegionalShippingFeeRepository")
*/
class RegionalShippingFee extends AbstractEntity
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", options={"unsigned":true})
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var boolean
*
* @ORM\Column(name="switch_1", type="boolean", options={"default":true})
*/
private $switch_1 = true;
/**
* @var string|null
*
* @ORM\Column(name="fee_a", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0})
*/
private $fee_a;
/**
* @var string|null
*
* @ORM\Column(name="fee_b", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0})
*/
private $fee_b;
/**
* @var string
*
* @ORM\Column(name="regional_list", type="text", length=4294967295, nullable=false, options={"default":0})
*/
private $regional_list;
/**
* @var boolean
*
* @ORM\Column(name="switch_2", type="boolean", options={"default":true})
*/
private $switch_2 = true;
/**
* @var string|null
*
* @ORM\Column(name="fee_c", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0})
*/
private $fee_c;
/**
* @var string|null
*
* @ORM\Column(name="fee_d", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0})
*/
private $fee_d;
/**
* @var string
*
* @ORM\Column(name="regional_list_2", type="text", length=4294967295, nullable=false, options={"default":0})
*/
private $regional_list_2;
/**
* @var boolean
*
* @ORM\Column(name="switch_3", type="boolean", options={"default":true})
*/
private $switch_3 = true;
/**
* @var string|null
*
* @ORM\Column(name="fee_e", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0})
*/
private $fee_e;
/**
* @var string|null
*
* @ORM\Column(name="fee_f", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0})
*/
private $fee_f;
/**
* @var string
*
* @ORM\Column(name="regional_list_3", type="text", length=4294967295, nullable=false, options={"default":0})
*/
private $regional_list_3;
/**
* @var boolean
*
* @ORM\Column(name="switch_4", type="boolean", options={"default":true})
*/
private $switch_4 = true;
/**
* @var string|null
*
* @ORM\Column(name="fee_g", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0})
*/
private $fee_g;
/**
* @var string|null
*
* @ORM\Column(name="fee_h", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0})
*/
private $fee_h;
/**
* @var string
*
* @ORM\Column(name="regional_list_4", type="text", length=4294967295, nullable=false, options={"default":0})
*/
private $regional_list_4;
/**
* Set id.
*
* @param int id
*
* @return $this
*/
public function setId($id)
{
$this->id = 1;
return $this;
}
/**
* @return int
*/
public function getId()
{
return $this->id;
}
/*
* エリア1の設定群
*/
/**
* Set switch_1.
*
* @param bool $switch_1
*
* @return $this
*/
public function setSwitch1($switch_1)
{
$this->switch_1 = $switch_1;
return $this;
}
/**
* Get switch_1.
*
* @return bool
*/
public function getSwitch1()
{
return $this->switch_1;
}
/**
* Set fee_a.
*
* @param string|null $fee_a
*
* @return $this
*/
public function setFeeA($fee_a)
{
$this->fee_a = $fee_a;
return $this;
}
/**
* Get fee_a.
*
* @return string|null
*/
public function getFeeA()
{
return $this->fee_a;
}
/**
* Set fee_b.
*
* @param string|null $fee_b
*
* @return $this
*/
public function setFeeB($fee_b)
{
$this->fee_b = $fee_b;
return $this;
}
/**
* Get fee_b.
*
* @return string|null
*/
public function getFeeB()
{
return $this->fee_b;
}
/**
* Set regional_list.
*
* @param string regional_list
*
* @return $this
*/
public function setRegionalList($regional_list)
{
$this->regional_list = $regional_list;
return $this;
}
/**
* Get regional_list.
*
* @return string
*/
public function getRegionalList()
{
return $this->regional_list;
}
public function getPostalCodeLists()
{
$postalCodeList = $this->getRegionalList();
$array = explode(',', $postalCodeList);
return $array;
}
/*
* エリア2の設定群
*/
/**
* Set switch_2.
*
* @param bool $switch_2
*
* @return $this
*/
public function setSwitch2($switch_2)
{
$this->switch_2 = $switch_2;
return $this;
}
/**
* Get switch_2.
*
* @return bool
*/
public function getSwitch2()
{
return $this->switch_2;
}
/**
* Set fee_c.
*
* @param string|null $fee_c
*
* @return $this
*/
public function setFeeC($fee_c)
{
$this->fee_c = $fee_c;
return $this;
}
/**
* Get fee_c.
*
* @return string|null
*/
public function getFeeC()
{
return $this->fee_c;
}
/**
* Set fee_d.
*
* @param string|null $fee_d
*
* @return $this
*/
public function setFeeD($fee_d)
{
$this->fee_d = $fee_d;
return $this;
}
/**
* Get fee_d.
*
* @return string|null
*/
public function getFeeD()
{
return $this->fee_d;
}
/**
* Set regional_list_2.
*
* @param string regional_list_2
*
* @return $this
*/
public function setRegionalList2($regional_list_2)
{
$this->regional_list_2 = $regional_list_2;
return $this;
}
/**
* Get regional_list_2.
*
* @return string|null
*/
public function getRegionalList2()
{
return $this->regional_list_2;
}
public function getSecondPostalCodeLists()
{
$secondPostalCodeList = $this->getRegionalList2();
$array = explode(',', $secondPostalCodeList);
return $array;
}
/*
* エリア3の設定群
*/
/**
* Set switch_3.
*
* @param bool $switch_3
*
* @return $this
*/
public function setSwitch3($switch_3)
{
$this->switch_3 = $switch_3;
return $this;
}
/**
* Get switch_3.
*
* @return bool
*/
public function getSwitch3()
{
return $this->switch_3;
}
/**
* Set fee_e.
*
* @param string|null $fee_e
*
* @return $this
*/
public function setFeeE($fee_e)
{
$this->fee_e = $fee_e;
return $this;
}
/**
* Get fee_e.
*
* @return string|null
*/
public function getFeeE()
{
return $this->fee_e;
}
/**
* Set fee_f.
*
* @param string|null $fee_f
*
* @return $this
*/
public function setFeeF($fee_f)
{
$this->fee_f = $fee_f;
return $this;
}
/**
* Get fee_f.
*
* @return string|null
*/
public function getFeeF()
{
return $this->fee_f;
}
/**
* Set regional_list_3.
*
* @param string regional_list_3
*
* @return $this
*/
public function setRegionalList3($regional_list_3)
{
$this->regional_list_3 = $regional_list_3;
return $this;
}
/**
* Get regional_list_3.
*
* @return string|null
*/
public function getRegionalList3()
{
return $this->regional_list_3;
}
public function getThirdPostalCodeLists()
{
$thirdPostalCodeList = $this->getRegionalList3();
$array = explode(',', $thirdPostalCodeList);
return $array;
}
/*
* エリア4の設定群
*/
/**
* Set switch_4.
*
* @param bool $switch_4
*
* @return $this
*/
public function setSwitch4($switch_4)
{
$this->switch_4 = $switch_4;
return $this;
}
/**
* Get switch_4.
*
* @return bool
*/
public function getSwitch4()
{
return $this->switch_4;
}
/**
* Set fee_g.
*
* @param string|null $fee_g
*
* @return $this
*/
public function setFeeG($fee_g)
{
$this->fee_g = $fee_g;
return $this;
}
/**
* Get fee_g.
*
* @return string|null
*/
public function getFeeG()
{
return $this->fee_g;
}
/**
* Set fee_h.
*
* @param string|null $fee_h
*
* @return $this
*/
public function setFeeH($fee_h)
{
$this->fee_h = $fee_h;
return $this;
}
/**
* Get fee_h.
*
* @return string|null
*/
public function getFeeH()
{
return $this->fee_h;
}
/**
* Set regional_list_4.
*
* @param string regional_list_4
*
* @return $this
*/
public function setRegionalList4($regional_list_4)
{
$this->regional_list_4 = $regional_list_4;
return $this;
}
/**
* Get regional_list_4.
*
* @return string|null
*/
public function getRegionalList4()
{
return $this->regional_list_4;
}
public function getForthPostalCodeLists()
{
$forthPostalCodeList = $this->getRegionalList4();
$array = explode(',', $forthPostalCodeList);
return $array;
}
}
}