app/Plugin/EccubePaymentLite42/Entity/GmoEpsilonPayment.php line 17

Open in your IDE?
  1. <?php
  2. namespace Plugin\EccubePaymentLite42\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Eccube\Entity\Master\AbstractMasterEntity;
  6. /**
  7.  * @ORM\Table(name="plg_eccube_payment_lite42_payment")
  8.  * @ORM\InheritanceType("SINGLE_TABLE")
  9.  * @ORM\DiscriminatorColumn(name="discriminator_type", type="string", length=255)
  10.  * @ORM\HasLifecycleCallbacks()
  11.  * @ORM\Entity(repositoryClass="Plugin\EccubePaymentLite42\Repository\GmoEpsilonPaymentRepository")
  12.  * @ORM\Cache(usage="NONSTRICT_READ_WRITE")
  13.  */
  14. class GmoEpsilonPayment extends AbstractMasterEntity
  15. {
  16.     const CREDIT 1;
  17.     const REGISTERED_CREDIT_CARD 2;
  18.     const CONVENIENCE_STORE 3;
  19.     const ONLINE_BANK_JAPAN_NET_BANK 4;
  20.     const ONLINE_BANK_RAKUTEN 5;
  21.     const PAY_EASY 7;
  22.     const WEB_MONEY 8;
  23.     const YAHOO_WALLET 9;
  24.     const PAYPAL 11;
  25.     const BIT_CASH 12;
  26.     const CHOCOM_E_MONEY 13;
  27.     const SMARTPHONE_CARRIER 15;
  28.     const JCB_PREMO 16;
  29.     const ONLINE_BANK_SUMISHIN_SBI 17;
  30.     const GMO_DEFERRED_PAYMENT 18;
  31.     const VIRTUAL_ACCOUNT 22;
  32.     const PAYPAY 25;
  33.     const MAIL_LINK 99;
  34.     /**
  35.      * @var int
  36.      * @ORM\Column(name="charge", type="decimal", precision=12, scale=2, nullable=true, options={"unsigned":true,"default":0})
  37.      */
  38.     private $charge 0;
  39.     /**
  40.      * @var string|null
  41.      *
  42.      * @ORM\Column(name="rule_max", type="decimal", precision=12, scale=2, nullable=true, options={"unsigned":true})
  43.      */
  44.     private $rule_max;
  45.     /**
  46.      * @var string|null
  47.      *
  48.      * @ORM\Column(name="rule_min", type="decimal", precision=12, scale=2, nullable=true, options={"unsigned":true})
  49.      */
  50.     private $rule_min;
  51.     /**
  52.      * @var string|null
  53.      *
  54.      * @ORM\Column(name="method_class", type="string", length=255, nullable=true)
  55.      */
  56.     private $method_class;
  57.     /**
  58.      * @ORM\ManyToMany(targetEntity="Plugin\EccubePaymentLite42\Entity\Config", mappedBy="gmoEpsilonPayments")
  59.      */
  60.     private $gmoEpsilonConfigs;
  61.     public function __construct()
  62.     {
  63.         $this->gmoEpsilonConfigs = new ArrayCollection();
  64.     }
  65.     public function addGmoEpsilonConfig(Config $Config)
  66.     {
  67.         $this->gmoEpsilonConfigs[] = $Config;
  68.         return $this;
  69.     }
  70.     /**
  71.      * @return int
  72.      */
  73.     public function getCharge()
  74.     {
  75.         return $this->charge;
  76.     }
  77.     /**
  78.      * @return self
  79.      */
  80.     public function setCharge(int $charge)
  81.     {
  82.         $this->charge $charge;
  83.         return $this;
  84.     }
  85.     /**
  86.      * @return string|null
  87.      */
  88.     public function getRuleMax()
  89.     {
  90.         return $this->rule_max;
  91.     }
  92.     /**
  93.      * @return self
  94.      */
  95.     public function setRuleMax(?string $rule_max)
  96.     {
  97.         $this->rule_max $rule_max;
  98.         return $this;
  99.     }
  100.     /**
  101.      * @return string|null
  102.      */
  103.     public function getRuleMin()
  104.     {
  105.         return $this->rule_min;
  106.     }
  107.     /**
  108.      * @return self
  109.      */
  110.     public function setRuleMin(?string $rule_min)
  111.     {
  112.         $this->rule_min $rule_min;
  113.         return $this;
  114.     }
  115.     /**
  116.      * @return string|null
  117.      */
  118.     public function getMethodClass()
  119.     {
  120.         return $this->method_class;
  121.     }
  122.     /**
  123.      * @return self
  124.      */
  125.     public function setMethodClass(?string $method_class)
  126.     {
  127.         $this->method_class $method_class;
  128.         return $this;
  129.     }
  130. }