app/Plugin/EccubePaymentLite42/Entity/Config.php line 13

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\AbstractEntity;
  6. /**
  7.  * @ORM\Table(name="plg_eccube_payment_lite42_config")
  8.  * @ORM\Entity(repositoryClass="Plugin\EccubePaymentLite42\Repository\ConfigRepository")
  9.  */
  10. class Config extends AbstractEntity
  11. {
  12.     const ENVIRONMENTAL_SETTING_DEVELOPMENT 1;
  13.     const ENVIRONMENTAL_SETTING_PRODUCTION 2;
  14.     const LINK_PAYMENT 1;
  15.     const TOKEN_PAYMENT 2;
  16.     /**
  17.      * @var integer
  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 string
  26.      *
  27.      * @ORM\Column(name="contract_code", type="string", length=255, nullable=true)
  28.      */
  29.     private $contract_code;
  30.     /**
  31.      * @var integer
  32.      *
  33.      * @ORM\Column(name="environmental_setting", type="integer")
  34.      */
  35.     private $environmental_setting;
  36.     /**
  37.      * @var integer
  38.      *
  39.      * @ORM\Column(name="credit_payment_setting", type="integer", options={"default":1})
  40.      */
  41.     private $credit_payment_setting;
  42.     /**
  43.      * @var string
  44.      *
  45.      * @deprecated
  46.      * @ORM\Column(name="use_payment", type="string", length=1024, nullable=true)
  47.      */
  48.     private $use_payment;
  49.     /**
  50.      * @var string
  51.      *
  52.      * @deprecated
  53.      * @ORM\Column(name="use_convenience", type="string", length=1024, nullable=true)
  54.      */
  55.     private $use_convenience;
  56.     /**
  57.      * @var integer
  58.      *
  59.      * @ORM\Column(name="card_expiration_notification_days", type="integer")
  60.      */
  61.     private $card_expiration_notification_days;
  62.     /**
  63.      * @var boolean
  64.      *
  65.      * @ORM\Column(name="regular", type="boolean")
  66.      */
  67.     private $regular;
  68.     /**
  69.      * @var integer
  70.      *
  71.      * @ORM\Column(name="block_mode", type="integer", nullable=true)
  72.      */
  73.     private $block_mode;
  74.     /**
  75.      * @var integer
  76.      *
  77.      * @ORM\Column(name="access_frequency_time", type="integer", nullable=true)
  78.      */
  79.     private $access_frequency_time;
  80.     /**
  81.      * @var integer
  82.      *
  83.      * @ORM\Column(name="access_frequency", type="integer", nullable=true)
  84.      */
  85.     private $access_frequency;
  86.     /**
  87.      * @var integer
  88.      *
  89.      * @ORM\Column(name="block_time", type="integer", nullable=true)
  90.      */
  91.     private $block_time;
  92.     /**
  93.      * @var string
  94.      *
  95.      * @ORM\Column(name="white_list", type="string", nullable=true)
  96.      */
  97.     private $white_list;
  98.     /**
  99.      * @ORM\ManyToMany(targetEntity="Plugin\EccubePaymentLite42\Entity\GmoEpsilonPayment", inversedBy="gmoEpsilonConfigs", cascade={"persist","remove"})
  100.      * @ORM\JoinTable(name="plg_eccube_payment_lite42_configs_payments")
  101.      */
  102.     private $gmoEpsilonPayments;
  103.     /**
  104.      * @ORM\ManyToMany(targetEntity="ConvenienceStore", inversedBy="gmoEpsilonConfigs", cascade={"persist","remove"})
  105.      * @ORM\JoinTable(name="plg_eccube_payment_lite42_configs_convenience_stores")
  106.      */
  107.     private $ConvenienceStores;
  108.     /**
  109.      * @ORM\ManyToMany(targetEntity="Plugin\EccubePaymentLite42\Entity\IpBlackList", inversedBy="gmoEpsilonConfigs", cascade={"persist","remove"})
  110.      * @ORM\JoinTable(name="plg_eccube_payment_lite42_configs_ip_black_list")
  111.      */
  112.     private $ipBlackList;
  113.     /**
  114.      * @ORM\Column(name="regular_order_notification_email", type="string", length=255, nullable=true)
  115.      */
  116.     private $regular_order_notification_email;
  117.     /**
  118.      * @ORM\ManyToMany(targetEntity="Plugin\EccubePaymentLite42\Entity\MyPageRegularSetting", inversedBy="gmoEpsilonConfigs", cascade={"persist","remove"})
  119.      * @ORM\JoinTable(name="plg_eccube_payment_lite42_configs_my_page_regular_settings")
  120.      */
  121.     private $myPageRegularSettings;
  122.     /**
  123.      * @ORM\Column(name="next_delivery_date_changeable_range_days", type="integer")
  124.      */
  125.     private $next_delivery_date_changeable_range_days;
  126.     /**
  127.      * @ORM\Column(name="first_delivery_days", type="integer")
  128.      */
  129.     private $first_delivery_days;
  130.     /**
  131.      * @ORM\Column(name="next_delivery_days_at_regular_resumption", type="integer")
  132.      */
  133.     private $next_delivery_days_at_regular_resumption;
  134.     /**
  135.      * @ORM\Column(name="next_delivery_days_after_re_payment", type="integer")
  136.      */
  137.     private $next_delivery_days_after_re_payment;
  138.     /**
  139.      * @ORM\Column(name="regular_order_deadline", type="integer")
  140.      */
  141.     private $regular_order_deadline;
  142.     /**
  143.      * @ORM\Column(name="regular_delivery_notification_email_days", type="integer", nullable=true)
  144.      */
  145.     private $regular_delivery_notification_email_days;
  146.     /**
  147.      * @ORM\Column(name="regular_stoppable_count", type="integer")
  148.      */
  149.     private $regular_stoppable_count;
  150.     /**
  151.      * @ORM\Column(name="regular_cancelable_count", type="integer")
  152.      */
  153.     private $regular_cancelable_count;
  154.     /**
  155.      * @ORM\Column(name="regular_resumable_period", type="integer", nullable=true)
  156.      */
  157.     private $regular_resumable_period;
  158.     /**
  159.      * @ORM\Column(name="regular_specified_count_notification_mail", type="integer", nullable=true)
  160.      */
  161.     private $regular_specified_count_notification_mail;
  162.     /** @ORM\Column(name="regular_point_magnification", type="integer", nullable=true)
  163.      */
  164.     private $regular_point_magnification;
  165.     public function __construct()
  166.     {
  167.         $this->gmoEpsilonPayments = new ArrayCollection();
  168.         $this->ConvenienceStores = new ArrayCollection();
  169.         $this->myPageRegularSettings = new ArrayCollection();
  170.         $this->ipBlackList = new ArrayCollection();
  171.     }
  172.     public function getId()
  173.     {
  174.         return $this->id;
  175.     }
  176.     public function getContractCode()
  177.     {
  178.         return $this->contract_code;
  179.     }
  180.     public function setContractCode($contract_code)
  181.     {
  182.         $this->contract_code $contract_code;
  183.         return $this;
  184.     }
  185.     public function getEnvironmentalSetting()
  186.     {
  187.         return $this->environmental_setting;
  188.     }
  189.     public function setEnvironmentalSetting(int $environmental_setting)
  190.     {
  191.         $this->environmental_setting $environmental_setting;
  192.         return $this;
  193.     }
  194.     public function getCreditPaymentSetting()
  195.     {
  196.         return $this->credit_payment_setting;
  197.     }
  198.     public function setCreditPaymentSetting($credit_payment_setting)
  199.     {
  200.         $this->credit_payment_setting $credit_payment_setting;
  201.         return $this;
  202.     }
  203.     public function getUsePayment()
  204.     {
  205.         return $this->use_payment;
  206.     }
  207.     public function setUsePayment($use_payment)
  208.     {
  209.         $this->use_payment $use_payment;
  210.         return $this;
  211.     }
  212.     public function getUseConvenience()
  213.     {
  214.         return $this->use_convenience;
  215.     }
  216.     public function setUseConvenience($use_convenience)
  217.     {
  218.         $this->use_convenience $use_convenience;
  219.         return $this;
  220.     }
  221.     public function getRegular()
  222.     {
  223.         return $this->regular;
  224.     }
  225.     public function setRegular($regular)
  226.     {
  227.         $this->regular $regular;
  228.         return $this;
  229.     }
  230.     public function getBlockMode()
  231.     {
  232.         return $this->block_mode;
  233.     }
  234.     public function setBlockMode($block_mode)
  235.     {
  236.         $this->block_mode $block_mode;
  237.         return $this;
  238.     }
  239.     public function getAccessFrequencyTime()
  240.     {
  241.         return $this->access_frequency_time;
  242.     }
  243.     public function setAccessFrequencyTime($access_frequency_time)
  244.     {
  245.         $this->access_frequency_time $access_frequency_time;
  246.         return $this;
  247.     }
  248.     public function getAccessFrequency()
  249.     {
  250.         return $this->access_frequency;
  251.     }
  252.     public function setAccessFrequency($access_frequency)
  253.     {
  254.         $this->access_frequency $access_frequency;
  255.         return $this;
  256.     }
  257.     public function getBlockTime()
  258.     {
  259.         return $this->block_time;
  260.     }
  261.     public function setBlockTime($block_time)
  262.     {
  263.         $this->block_time $block_time;
  264.         return $this;
  265.     }
  266.     public function getWhiteList()
  267.     {
  268.         return $this->white_list;
  269.     }
  270.     public function setWhiteList($white_list)
  271.     {
  272.         $this->white_list $white_list;
  273.         return $this;
  274.     }
  275.     public function getGmoEpsilonPayments()
  276.     {
  277.         return $this->gmoEpsilonPayments;
  278.     }
  279.     public function getConvenienceStores()
  280.     {
  281.         return $this->ConvenienceStores;
  282.     }
  283.     public function getMypageRegularSettings()
  284.     {
  285.         return $this->myPageRegularSettings;
  286.     }
  287.     public function getIpBlackList()
  288.     {
  289.         return $this->ipBlackList;
  290.     }
  291.     public function addGmoEpsilonPayment(GmoEpsilonPayment $gmoEpsilonPayment)
  292.     {
  293.         $gmoEpsilonPayment->addGmoEpsilonConfig($this);
  294.         $this->gmoEpsilonPayments[] = $gmoEpsilonPayment;
  295.         return $this;
  296.     }
  297.     public function addConvenienceStores(ConvenienceStore $ConvenienceStore)
  298.     {
  299.         $ConvenienceStore->addGmoEpsilonConfig($this);
  300.         $this->ConvenienceStores[] = $ConvenienceStore;
  301.         return $this;
  302.     }
  303.     public function addMyPageRegularSetting(MyPageRegularSetting $myPageRegularSetting)
  304.     {
  305.         $myPageRegularSetting->addGmoEpsilonConfig($this);
  306.         $this->myPageRegularSettings[] = $myPageRegularSetting;
  307.         return $this;
  308.     }
  309.     public function addIpBlackList(IpBlackList $ipBlackList)
  310.     {
  311.         $ipBlackList->addGmoEpsilonConfig($this);
  312.         $this->ipBlackList[] = $ipBlackList;
  313.         return $this;
  314.     }
  315.     public function getRegularOrderNotificationEmail()
  316.     {
  317.         return $this->regular_order_notification_email;
  318.     }
  319.     public function setRegularOrderNotificationEmail($regular_order_notification_email)
  320.     {
  321.         $this->regular_order_notification_email $regular_order_notification_email;
  322.         return $this;
  323.     }
  324.     public function getNextDeliveryDateChangeableRangeDays()
  325.     {
  326.         return $this->next_delivery_date_changeable_range_days;
  327.     }
  328.     public function setNextDeliveryDateChangeableRangeDays($next_delivery_date_changeable_range_days)
  329.     {
  330.         $this->next_delivery_date_changeable_range_days $next_delivery_date_changeable_range_days;
  331.         return $this;
  332.     }
  333.     public function getFirstDeliveryDays()
  334.     {
  335.         return $this->first_delivery_days;
  336.     }
  337.     public function setFirstDeliveryDays($first_delivery_days)
  338.     {
  339.         $this->first_delivery_days $first_delivery_days;
  340.         return $this;
  341.     }
  342.     public function getNextDeliveryDaysAtRegularResumption()
  343.     {
  344.         return $this->next_delivery_days_at_regular_resumption;
  345.     }
  346.     public function setNextDeliveryDaysAtRegularResumption($next_delivery_days_at_regular_resumption)
  347.     {
  348.         $this->next_delivery_days_at_regular_resumption $next_delivery_days_at_regular_resumption;
  349.         return $this;
  350.     }
  351.     public function getNextDeliveryDaysAfterRePayment()
  352.     {
  353.         return $this->next_delivery_days_after_re_payment;
  354.     }
  355.     public function setNextDeliveryDaysAfterRePayment($next_delivery_days_after_re_payment)
  356.     {
  357.         $this->next_delivery_days_after_re_payment $next_delivery_days_after_re_payment;
  358.         return $this;
  359.     }
  360.     public function getRegularOrderDeadline()
  361.     {
  362.         return $this->regular_order_deadline;
  363.     }
  364.     public function setRegularOrderDeadline($regular_order_deadline)
  365.     {
  366.         $this->regular_order_deadline $regular_order_deadline;
  367.         return $this;
  368.     }
  369.     public function getRegularDeliveryNotificationEmailDays()
  370.     {
  371.         return $this->regular_delivery_notification_email_days;
  372.     }
  373.     public function setRegularDeliveryNotificationEmailDays($regular_delivery_notification_email_days)
  374.     {
  375.         $this->regular_delivery_notification_email_days $regular_delivery_notification_email_days;
  376.         return $this;
  377.     }
  378.     public function getCardExpirationNotificationDays()
  379.     {
  380.         return $this->card_expiration_notification_days;
  381.     }
  382.     public function setCardExpirationNotificationDays(int $card_expiration_notification_days)
  383.     {
  384.         $this->card_expiration_notification_days $card_expiration_notification_days;
  385.         return $this;
  386.     }
  387.     public function getRegularStoppableCount()
  388.     {
  389.         return $this->regular_stoppable_count;
  390.     }
  391.     public function setRegularStoppableCount($regular_stoppable_count): self
  392.     {
  393.         $this->regular_stoppable_count $regular_stoppable_count;
  394.         return $this;
  395.     }
  396.     public function getRegularCancelableCount()
  397.     {
  398.         return $this->regular_cancelable_count;
  399.     }
  400.     public function setRegularCancelableCount($regular_cancelable_count): self
  401.     {
  402.         $this->regular_cancelable_count $regular_cancelable_count;
  403.         return $this;
  404.     }
  405.     public function getRegularResumablePeriod()
  406.     {
  407.         return $this->regular_resumable_period;
  408.     }
  409.     public function setRegularResumablePeriod($regular_resumable_period): self
  410.     {
  411.         $this->regular_resumable_period $regular_resumable_period;
  412.         return $this;
  413.     }
  414.     public function getRegularSpecifiedCountNotificationMail()
  415.     {
  416.         return $this->regular_specified_count_notification_mail;
  417.     }
  418.     public function setRegularSpecifiedCountNotificationMail($regular_specified_count_notification_mail): self
  419.     {
  420.         $this->regular_specified_count_notification_mail $regular_specified_count_notification_mail;
  421.         return $this;
  422.     }
  423.     public function getRegularPointMagnification()
  424.     {
  425.         return $this->regular_point_magnification;
  426.     }
  427.     public function setRegularPointMagnification($regular_point_magnification): self
  428.     {
  429.         $this->regular_point_magnification $regular_point_magnification;
  430.         return $this;
  431.     }
  432. }