app/Plugin/RegionalShippingFeePro42/Entity/RegionalShippingFee.php line 19

Open in your IDE?
  1. <?php
  2. namespace Plugin\RegionalShippingFeePro42\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Eccube\Entity\AbstractEntity;
  5. if (!class_exists('\Plugin\RegionalShippingFeePro42\Entity\RegionalShippingFee'false)) {
  6.     /**
  7.      * RegionalShippingFee
  8.      *
  9.      * @ORM\Table(name="plg_regional_shipping_fee_pro")
  10.      * @ORM\InheritanceType("SINGLE_TABLE")
  11.      * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  12.      * @ORM\HasLifecycleCallbacks()
  13.      * @ORM\Entity(repositoryClass="Plugin\RegionalShippingFeePro42\Repository\RegionalShippingFeeRepository")
  14.      */
  15.     class RegionalShippingFee extends AbstractEntity
  16.     {
  17.         /**
  18.          * @var int
  19.          *
  20.          * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  21.          * @ORM\Id
  22.          * @ORM\GeneratedValue(strategy="IDENTITY")
  23.          */
  24.         private $id;
  25.         /**
  26.         * @var boolean
  27.         *
  28.         * @ORM\Column(name="switch_1", type="boolean", options={"default":true})
  29.         */
  30.         private $switch_1 true;
  31.         /**
  32.          * @var string|null
  33.          *
  34.          * @ORM\Column(name="fee_a", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0})
  35.          */
  36.         private $fee_a;
  37.         /**
  38.          * @var string|null
  39.          *
  40.          * @ORM\Column(name="fee_b", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0})
  41.          */
  42.         private $fee_b;
  43.         /**
  44.          * @var string
  45.          *
  46.          * @ORM\Column(name="regional_list", type="text", length=4294967295, nullable=false, options={"default":0})
  47.          */
  48.         private $regional_list;
  49.         /**
  50.         * @var boolean
  51.         *
  52.         * @ORM\Column(name="switch_2", type="boolean", options={"default":true})
  53.         */
  54.         private $switch_2 true;
  55.         /**
  56.          * @var string|null
  57.          *
  58.          * @ORM\Column(name="fee_c", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0})
  59.          */
  60.         private $fee_c;
  61.         /**
  62.          * @var string|null
  63.          *
  64.          * @ORM\Column(name="fee_d", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0})
  65.          */
  66.         private $fee_d;
  67.         /**
  68.          * @var string
  69.          *
  70.          * @ORM\Column(name="regional_list_2", type="text", length=4294967295, nullable=false, options={"default":0})
  71.          */
  72.         private $regional_list_2;
  73.         /**
  74.         * @var boolean
  75.         *
  76.         * @ORM\Column(name="switch_3", type="boolean", options={"default":true})
  77.         */
  78.         private $switch_3 true;
  79.         /**
  80.          * @var string|null
  81.          *
  82.          * @ORM\Column(name="fee_e", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0})
  83.          */
  84.         private $fee_e;
  85.         /**
  86.          * @var string|null
  87.          *
  88.          * @ORM\Column(name="fee_f", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0})
  89.          */
  90.         private $fee_f;
  91.         /**
  92.          * @var string
  93.          *
  94.          * @ORM\Column(name="regional_list_3", type="text", length=4294967295, nullable=false, options={"default":0})
  95.          */
  96.         private $regional_list_3;
  97.         /**
  98.         * @var boolean
  99.         *
  100.         * @ORM\Column(name="switch_4", type="boolean", options={"default":true})
  101.         */
  102.         private $switch_4 true;
  103.         /**
  104.          * @var string|null
  105.          *
  106.          * @ORM\Column(name="fee_g", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0})
  107.          */
  108.         private $fee_g;
  109.         /**
  110.          * @var string|null
  111.          *
  112.          * @ORM\Column(name="fee_h", type="decimal", precision=10, scale=0, nullable=true, options={"unsigned":true,"default":0})
  113.          */
  114.         private $fee_h;
  115.         /**
  116.          * @var string
  117.          *
  118.          * @ORM\Column(name="regional_list_4", type="text", length=4294967295, nullable=false, options={"default":0})
  119.          */
  120.         private $regional_list_4;
  121.         /**
  122.          * Set id.
  123.          *
  124.          * @param int id
  125.          *
  126.          * @return $this
  127.          */
  128.         public function setId($id)
  129.         {
  130.             $this->id 1;
  131.             return $this;
  132.         }
  133.         /**
  134.          * @return int
  135.          */
  136.         public function getId()
  137.         {
  138.             return $this->id;
  139.         }
  140.         /* 
  141.          * エリア1の設定群
  142.          */
  143.         /**
  144.          * Set switch_1.
  145.          *
  146.          * @param bool $switch_1
  147.          *
  148.          * @return $this
  149.          */
  150.         public function setSwitch1($switch_1)
  151.         {
  152.             $this->switch_1 $switch_1;
  153.             return $this;
  154.         }
  155.         /**
  156.          * Get switch_1.
  157.          *
  158.          * @return bool
  159.          */
  160.         public function getSwitch1()
  161.         {
  162.             return $this->switch_1;
  163.         }
  164.         /**
  165.          * Set fee_a.
  166.          *
  167.          * @param string|null $fee_a
  168.          *
  169.          * @return $this
  170.          */
  171.         public function setFeeA($fee_a)
  172.         {
  173.             $this->fee_a $fee_a;
  174.             return $this;
  175.         }
  176.         /**
  177.          * Get fee_a.
  178.          *
  179.          * @return string|null
  180.          */
  181.         public function getFeeA()
  182.         {
  183.             return $this->fee_a;
  184.         }
  185.         /**
  186.          * Set fee_b.
  187.          *
  188.          * @param string|null $fee_b
  189.          *
  190.          * @return $this
  191.          */
  192.         public function setFeeB($fee_b)
  193.         {
  194.             $this->fee_b $fee_b;
  195.             return $this;
  196.         }
  197.         /**
  198.          * Get fee_b.
  199.          *
  200.          * @return string|null
  201.          */
  202.         public function getFeeB()
  203.         {
  204.             return $this->fee_b;
  205.         }
  206.         /**
  207.          * Set regional_list.
  208.          * 
  209.          * @param string regional_list
  210.          *
  211.          * @return $this
  212.          */
  213.         public function setRegionalList($regional_list)
  214.         {
  215.             $this->regional_list $regional_list;
  216.             return $this;
  217.         }
  218.         /**
  219.          * Get regional_list.
  220.          *
  221.          * @return string
  222.          */
  223.         public function getRegionalList()
  224.         {
  225.             return $this->regional_list;
  226.         }
  227.         public function getPostalCodeLists()
  228.         {
  229.             $postalCodeList $this->getRegionalList();
  230.             $array explode(','$postalCodeList);
  231.             return $array;
  232.         }
  233.         /* 
  234.          * エリア2の設定群
  235.          */
  236.         /**
  237.          * Set switch_2.
  238.          *
  239.          * @param bool $switch_2
  240.          *
  241.          * @return $this
  242.          */
  243.         public function setSwitch2($switch_2)
  244.         {
  245.             $this->switch_2 $switch_2;
  246.             return $this;
  247.         }
  248.         /**
  249.          * Get switch_2.
  250.          *
  251.          * @return bool
  252.          */
  253.         public function getSwitch2()
  254.         {
  255.             return $this->switch_2;
  256.         }
  257.         /**
  258.          * Set fee_c.
  259.          *
  260.          * @param string|null $fee_c
  261.          *
  262.          * @return $this
  263.          */
  264.         public function setFeeC($fee_c)
  265.         {
  266.             $this->fee_c $fee_c;
  267.             return $this;
  268.         }
  269.         /**
  270.          * Get fee_c.
  271.          *
  272.          * @return string|null
  273.          */
  274.         public function getFeeC()
  275.         {
  276.             return $this->fee_c;
  277.         }
  278.         /**
  279.          * Set fee_d.
  280.          *
  281.          * @param string|null $fee_d
  282.          *
  283.          * @return $this
  284.          */
  285.         public function setFeeD($fee_d)
  286.         {
  287.             $this->fee_d $fee_d;
  288.             return $this;
  289.         }
  290.         /**
  291.          * Get fee_d.
  292.          *
  293.          * @return string|null
  294.          */
  295.         public function getFeeD()
  296.         {
  297.             return $this->fee_d;
  298.         }
  299.         /**
  300.          * Set regional_list_2.
  301.          * 
  302.          * @param string regional_list_2
  303.          *
  304.          * @return $this
  305.          */
  306.         public function setRegionalList2($regional_list_2)
  307.         {
  308.             $this->regional_list_2 $regional_list_2;
  309.             return $this;
  310.         }
  311.         /**
  312.          * Get regional_list_2.
  313.          *
  314.          * @return string|null
  315.          */
  316.         public function getRegionalList2()
  317.         {
  318.             return $this->regional_list_2;
  319.         }
  320.         public function getSecondPostalCodeLists()
  321.         {
  322.             $secondPostalCodeList $this->getRegionalList2();
  323.             $array explode(','$secondPostalCodeList);
  324.             return $array;
  325.         }
  326.         /* 
  327.          * エリア3の設定群
  328.          */
  329.         /**
  330.          * Set switch_3.
  331.          *
  332.          * @param bool $switch_3
  333.          *
  334.          * @return $this
  335.          */
  336.         public function setSwitch3($switch_3)
  337.         {
  338.             $this->switch_3 $switch_3;
  339.             return $this;
  340.         }
  341.         /**
  342.          * Get switch_3.
  343.          *
  344.          * @return bool
  345.          */
  346.         public function getSwitch3()
  347.         {
  348.             return $this->switch_3;
  349.         }
  350.         /**
  351.          * Set fee_e.
  352.          *
  353.          * @param string|null $fee_e
  354.          *
  355.          * @return $this
  356.          */
  357.         public function setFeeE($fee_e)
  358.         {
  359.             $this->fee_e $fee_e;
  360.             return $this;
  361.         }
  362.         /**
  363.          * Get fee_e.
  364.          *
  365.          * @return string|null
  366.          */
  367.         public function getFeeE()
  368.         {
  369.             return $this->fee_e;
  370.         }
  371.         /**
  372.          * Set fee_f.
  373.          *
  374.          * @param string|null $fee_f
  375.          *
  376.          * @return $this
  377.          */
  378.         public function setFeeF($fee_f)
  379.         {
  380.             $this->fee_f $fee_f;
  381.             return $this;
  382.         }
  383.         /**
  384.          * Get fee_f.
  385.          *
  386.          * @return string|null
  387.          */
  388.         public function getFeeF()
  389.         {
  390.             return $this->fee_f;
  391.         }
  392.         /**
  393.          * Set regional_list_3.
  394.          * 
  395.          * @param string regional_list_3
  396.          *
  397.          * @return $this
  398.          */
  399.         public function setRegionalList3($regional_list_3)
  400.         {
  401.             $this->regional_list_3 $regional_list_3;
  402.             return $this;
  403.         }
  404.         /**
  405.          * Get regional_list_3.
  406.          *
  407.          * @return string|null
  408.          */
  409.         public function getRegionalList3()
  410.         {
  411.             return $this->regional_list_3;
  412.         }
  413.         public function getThirdPostalCodeLists()
  414.         {
  415.             $thirdPostalCodeList $this->getRegionalList3();
  416.             $array explode(','$thirdPostalCodeList);
  417.             return $array;
  418.         }
  419.         /* 
  420.          * エリア4の設定群
  421.          */
  422.         /**
  423.          * Set switch_4.
  424.          *
  425.          * @param bool $switch_4
  426.          *
  427.          * @return $this
  428.          */
  429.         public function setSwitch4($switch_4)
  430.         {
  431.             $this->switch_4 $switch_4;
  432.             return $this;
  433.         }
  434.         /**
  435.          * Get switch_4.
  436.          *
  437.          * @return bool
  438.          */
  439.         public function getSwitch4()
  440.         {
  441.             return $this->switch_4;
  442.         }
  443.         /**
  444.          * Set fee_g.
  445.          *
  446.          * @param string|null $fee_g
  447.          *
  448.          * @return $this
  449.          */
  450.         public function setFeeG($fee_g)
  451.         {
  452.             $this->fee_g $fee_g;
  453.             return $this;
  454.         }
  455.         /**
  456.          * Get fee_g.
  457.          *
  458.          * @return string|null
  459.          */
  460.         public function getFeeG()
  461.         {
  462.             return $this->fee_g;
  463.         }
  464.         /**
  465.          * Set fee_h.
  466.          *
  467.          * @param string|null $fee_h
  468.          *
  469.          * @return $this
  470.          */
  471.         public function setFeeH($fee_h)
  472.         {
  473.             $this->fee_h $fee_h;
  474.             return $this;
  475.         }
  476.         /**
  477.          * Get fee_h.
  478.          *
  479.          * @return string|null
  480.          */
  481.         public function getFeeH()
  482.         {
  483.             return $this->fee_h;
  484.         }
  485.         /**
  486.          * Set regional_list_4.
  487.          * 
  488.          * @param string regional_list_4
  489.          *
  490.          * @return $this
  491.          */
  492.         public function setRegionalList4($regional_list_4)
  493.         {
  494.             $this->regional_list_4 $regional_list_4;
  495.             return $this;
  496.         }
  497.         /**
  498.          * Get regional_list_4.
  499.          *
  500.          * @return string|null
  501.          */
  502.         public function getRegionalList4()
  503.         {
  504.             return $this->regional_list_4;
  505.         }
  506.         public function getForthPostalCodeLists()
  507.         {
  508.             $forthPostalCodeList $this->getRegionalList4();
  509.             $array explode(','$forthPostalCodeList);
  510.             return $array;
  511.         }
  512.     }
  513. }