app/Plugin/GmoPaymentGateway42/Entity/GmoPaymentMethod.php line 18

Open in your IDE?
  1. <?php
  2. /*
  3.  * Copyright(c) 2022 GMO Payment Gateway, Inc. All rights reserved.
  4.  * http://www.gmo-pg.com/
  5.  */
  6. namespace Plugin\GmoPaymentGateway42\Entity;
  7. use Doctrine\ORM\Mapping as ORM;
  8. /**
  9.  * GmoPaymentMethod
  10.  *
  11.  * @ORM\Table(name="plg_gmo_payment_gateway_payment_method")
  12.  * @ORM\Entity(repositoryClass="Plugin\GmoPaymentGateway42\Repository\GmoPaymentMethodRepository")
  13.  */
  14. class GmoPaymentMethod
  15. {
  16.     /**
  17.      * @var int
  18.      *
  19.      * @ORM\Column(name="id", type="integer", options={"unsigned":true})
  20.      * @ORM\Id
  21.      * @ORM\GeneratedValue(strategy="IDENTITY")
  22.      */
  23.     private $id;
  24.     /**
  25.      * @var int
  26.      *
  27.      * @ORM\Column(name="payment_id", type="integer", options={"unsigned":true})
  28.      */
  29.     private $payment_id;
  30.     /**
  31.      * @var text
  32.      *
  33.      * @ORM\Column(name="payment_method", type="text")
  34.      */
  35.     private $payment_method;
  36.     /**
  37.      * @var \DateTime
  38.      *
  39.      * @ORM\Column(name="create_date", type="datetimetz")
  40.      */
  41.     private $create_date;
  42.     /**
  43.      * @var \DateTime
  44.      *
  45.      * @ORM\Column(name="update_date", type="datetimetz")
  46.      */
  47.     private $update_date;
  48.     /**
  49.      * @var text
  50.      *
  51.      * @ORM\Column(name="memo01", type="text", nullable=true)
  52.      */
  53.     private $memo01;
  54.     /**
  55.      * @var text
  56.      *
  57.      * @ORM\Column(name="memo02", type="text", nullable=true)
  58.      */
  59.     private $memo02;
  60.     /**
  61.      * @var text
  62.      *
  63.      * @ORM\Column(name="memo03", type="text", nullable=true)
  64.      */
  65.     private $memo03;
  66.     /**
  67.      * @var text
  68.      *
  69.      * @ORM\Column(name="memo04", type="text", nullable=true)
  70.      */
  71.     private $memo04;
  72.     /**
  73.      * @var text
  74.      *
  75.      * @ORM\Column(name="memo05", type="text", nullable=true)
  76.      */
  77.     private $memo05;
  78.     /**
  79.      * @var text
  80.      *
  81.      * @ORM\Column(name="memo06", type="text", nullable=true)
  82.      */
  83.     private $memo06;
  84.     /**
  85.      * @var text
  86.      *
  87.      * @ORM\Column(name="memo07", type="text", nullable=true)
  88.      */
  89.     private $memo07;
  90.     /**
  91.      * @var text
  92.      *
  93.      * @ORM\Column(name="memo08", type="text", nullable=true)
  94.      */
  95.     private $memo08;
  96.     /**
  97.      * @var text
  98.      *
  99.      * @ORM\Column(name="memo09", type="text", nullable=true)
  100.      */
  101.     private $memo09;
  102.     /**
  103.      * @var text
  104.      *
  105.      * @ORM\Column(name="memo10", type="text", nullable=true)
  106.      */
  107.     private $memo10;
  108.     /**
  109.      * @var text
  110.      *
  111.      * @ORM\Column(name="plugin_code", type="text", nullable=true)
  112.      */
  113.     private $plugin_code;
  114.     /**
  115.      * @return int
  116.      */
  117.     public function getId()
  118.     {
  119.         return $this->id;
  120.     }
  121.     /**
  122.      * @return int
  123.      */
  124.     public function getPaymentId()
  125.     {
  126.         return $this->payment_id;
  127.     }
  128.     /**
  129.      * @return text
  130.      */
  131.     public function getPaymentMethod()
  132.     {
  133.         return $this->payment_method;
  134.     }
  135.     /**
  136.      * @return \DateTime
  137.      */
  138.     public function getCreateDate()
  139.     {
  140.         return $this->create_date;
  141.     }
  142.     /**
  143.      * @return \DateTime
  144.      */
  145.     public function getUpdateDate()
  146.     {
  147.         return $this->update_date;
  148.     }
  149.     /**
  150.      * @return text
  151.      */
  152.     public function getMemo01()
  153.     {
  154.         return $this->memo01;
  155.     }
  156.     /**
  157.      * @return text
  158.      */
  159.     public function getMemo02()
  160.     {
  161.         return $this->memo02;
  162.     }
  163.     /**
  164.      * @return text
  165.      */
  166.     public function getMemo03()
  167.     {
  168.         return $this->memo03;
  169.     }
  170.     /**
  171.      * @return text
  172.      */
  173.     public function getMemo04()
  174.     {
  175.         return $this->memo04;
  176.     }
  177.     /**
  178.      * @return text
  179.      */
  180.     public function getMemo05()
  181.     {
  182.         return $this->memo05;
  183.     }
  184.     /**
  185.      * @return text
  186.      */
  187.     public function getMemo06()
  188.     {
  189.         return $this->memo06;
  190.     }
  191.     /**
  192.      * @return text
  193.      */
  194.     public function getMemo07()
  195.     {
  196.         return $this->memo07;
  197.     }
  198.     /**
  199.      * @return text
  200.      */
  201.     public function getMemo08()
  202.     {
  203.         return $this->memo08;
  204.     }
  205.     /**
  206.      * @return text
  207.      */
  208.     public function getMemo09()
  209.     {
  210.         return $this->memo09;
  211.     }
  212.     /**
  213.      * @return text
  214.      */
  215.     public function getMemo10()
  216.     {
  217.         return $this->memo10;
  218.     }
  219.     /**
  220.      * @return text
  221.      */
  222.     public function getPluginCode()
  223.     {
  224.         return $this->plugin_code;
  225.     }
  226.     /**
  227.      * 支払方法の設定配列を返す
  228.      *
  229.      * @return array 設定配列
  230.      */
  231.     public function getPaymentMethodConfig()
  232.     {
  233.         $memo05 $this->getMemo05();
  234.         if (empty($memo05)) {
  235.             return [];
  236.         }
  237.         return json_decode($memo05true);
  238.     }
  239.     /**
  240.      * @param integer $payment_id
  241.      *
  242.      * @return $this;
  243.      */
  244.     public function setPaymentId($payment_id)
  245.     {
  246.         $this->payment_id $payment_id;
  247.         return $this;
  248.     }
  249.     /**
  250.      * @param text $payment_method
  251.      *
  252.      * @return $this;
  253.      */
  254.     public function setPaymentMethod($payment_method)
  255.     {
  256.         $this->payment_method $payment_method;
  257.         return $this;
  258.     }
  259.     /**
  260.      * @param \DateTime $create_date
  261.      *
  262.      * @return $this;
  263.      */
  264.     public function setCreateDate($create_date)
  265.     {
  266.         $this->create_date $create_date;
  267.         return $this;
  268.     }
  269.     /**
  270.      * @param \DateTime $update_date
  271.      *
  272.      * @return $this;
  273.      */
  274.     public function setUpdateDate($update_date)
  275.     {
  276.         $this->update_date $update_date;
  277.         return $this;
  278.     }
  279.     /**
  280.      * @param text $memo01
  281.      *
  282.      * @return $this;
  283.      */
  284.     public function setMemo01($memo01)
  285.     {
  286.         $this->memo01 $memo01;
  287.         return $this;
  288.     }
  289.     /**
  290.      * @param text $memo02
  291.      *
  292.      * @return $this;
  293.      */
  294.     public function setMemo02($memo02)
  295.     {
  296.         $this->memo02 $memo02;
  297.         return $this;
  298.     }
  299.     /**
  300.      * @param text $memo03
  301.      *
  302.      * @return $this;
  303.      */
  304.     public function setMemo03($memo03)
  305.     {
  306.         $this->memo03 $memo03;
  307.         return $this;
  308.     }
  309.     /**
  310.      * @param text $memo04
  311.      *
  312.      * @return $this;
  313.      */
  314.     public function setMemo04($memo04)
  315.     {
  316.         $this->memo04 $memo04;
  317.         return $this;
  318.     }
  319.     /**
  320.      * @param text $memo05
  321.      *
  322.      * @return $this;
  323.      */
  324.     public function setMemo05($memo05)
  325.     {
  326.         $this->memo05 $memo05;
  327.         return $this;
  328.     }
  329.     /**
  330.      * @param text $memo06
  331.      *
  332.      * @return $this;
  333.      */
  334.     public function setMemo06($memo06)
  335.     {
  336.         $this->memo06 $memo06;
  337.         return $this;
  338.     }
  339.     /**
  340.      * @param text $memo07
  341.      *
  342.      * @return $this;
  343.      */
  344.     public function setMemo07($memo07)
  345.     {
  346.         $this->memo07 $memo07;
  347.         return $this;
  348.     }
  349.     /**
  350.      * @param text $memo08
  351.      *
  352.      * @return $this;
  353.      */
  354.     public function setMemo08($memo08)
  355.     {
  356.         $this->memo08 $memo08;
  357.         return $this;
  358.     }
  359.     /**
  360.      * @param text $memo09
  361.      *
  362.      * @return $this;
  363.      */
  364.     public function setMemo09($memo09)
  365.     {
  366.         $this->memo09 $memo09;
  367.         return $this;
  368.     }
  369.     /**
  370.      * @param text $memo10
  371.      *
  372.      * @return $this;
  373.      */
  374.     public function setMemo10($memo10)
  375.     {
  376.         $this->memo10 $memo10;
  377.         return $this;
  378.     }
  379.     /**
  380.      * @param text $plugin_code
  381.      *
  382.      * @return $this;
  383.      */
  384.     public function setPluginCode($plugin_code)
  385.     {
  386.         $this->plugin_code $plugin_code;
  387.         return $this;
  388.     }
  389.     /**
  390.      * 支払方法の設定配列をセットする
  391.      *
  392.      * @param array $data データ配列
  393.      * @return $this;
  394.      */
  395.     public function setPaymentMethodConfig(array $data)
  396.     {
  397.         return $this->setMemo05(json_encode($data));
  398.     }
  399. }