Remove unused singleton from core payment processors
authorMatthew Wire <mjw@mjwconsult.co.uk>
Tue, 2 Jun 2020 13:55:35 +0000 (14:55 +0100)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Tue, 2 Jun 2020 13:55:35 +0000 (14:55 +0100)
CRM/Core/Payment/AuthorizeNet.php
CRM/Core/Payment/Dummy.php
CRM/Core/Payment/Elavon.php
CRM/Core/Payment/FirstData.php
CRM/Core/Payment/PayJunction.php
CRM/Core/Payment/PayflowPro.php
CRM/Core/Payment/PaymentExpress.php
CRM/Core/Payment/PaymentExpressIPN.php
CRM/Core/Payment/Realex.php
CRM/Core/Payment/eWAY.php

index 7f0c4f4fd2aece9b2ae0dcbc3be4f7fdd4092205..43a6f86c357dab65660ac1187f8b0e26f2c911d0 100644 (file)
@@ -51,14 +51,6 @@ class CRM_Core_Payment_AuthorizeNet extends CRM_Core_Payment {
     $this->guzzleClient = $guzzleClient;
   }
 
-  /**
-   * We only need one instance of this object. So we use the singleton
-   * pattern and cache the instance in this variable
-   *
-   * @var object
-   */
-  static private $_singleton = NULL;
-
   /**
    * Constructor.
    *
index e0a079a8f1b8b48218c9811bdc6e9354531e7d66..5c19d8a9e7cfb69f6b873df91dd2906c34de24e7 100644 (file)
@@ -43,14 +43,6 @@ class CRM_Core_Payment_Dummy extends CRM_Core_Payment {
     }
   }
 
-  /**
-   * We only need one instance of this object. So we use the singleton
-   * pattern and cache the instance in this variable
-   *
-   * @var object
-   */
-  static private $_singleton = NULL;
-
   /**
    * Constructor.
    *
index 0e63ded17d12c56d104a100e945a99ce45cbda74..d7d78ac1fa3e39edace382c91f22a61154c10dc6 100644 (file)
@@ -28,14 +28,6 @@ class CRM_Core_Payment_Elavon extends CRM_Core_Payment {
   const
     CHARSET = 'UFT-8';
 
-  /**
-   * We only need one instance of this object. So we use the singleton
-   * pattern and cache the instance in this variable
-   *
-   * @var CRM_Core_Payment_Elavon
-   */
-  static private $_singleton = NULL;
-
   /**
    * Constructor.
    *
index 860a4f6c87b252f2f29bd98757f075429eb154ef..5e520cf7e452608cfbdef142c41ae7660079a544 100644 (file)
@@ -55,14 +55,6 @@ class CRM_Core_Payment_FirstData extends CRM_Core_Payment {
   // (not used, implicit in the API, might need to convert?)
   const CHARSET = 'UFT-8';
 
-  /**
-   * We only need one instance of this object. So we use the singleton
-   * pattern and cache the instance in this variable
-   *
-   * @var object
-   */
-  static private $_singleton = NULL;
-
   /**
    * Constructor.
    *
index 646421ee03f1409bda82a19d4fd89fa7976b92a8..24cacaac73b448f30aa6b41eb79cb02348d3a165 100644 (file)
@@ -22,14 +22,6 @@ class CRM_Core_Payment_PayJunction extends CRM_Core_Payment {
   // (not used, implicit in the API, might need to convert?)
   const CHARSET = 'UFT-8';
 
-  /**
-   * We only need one instance of this object. So we use the singleton
-   * pattern and cache the instance in this variable
-   *
-   * @var object
-   */
-  static private $_singleton = NULL;
-
   /**
    * Constructor.
    *
index 662f6f9640a6c4cf4dd53138ab4219d96699b312..96e0947e43a7bde35f00d977a42553a609a89e4d 100644 (file)
@@ -17,14 +17,6 @@ class CRM_Core_Payment_PayflowPro extends CRM_Core_Payment {
   const
     CHARSET = 'UFT-8';
 
-  /**
-   * We only need one instance of this object. So we use the singleton
-   * pattern and cache the instance in this variable
-   *
-   * @var object
-   */
-  static private $_singleton = NULL;
-
   /**
    * Constructor
    *
index 643119444f20bc32e033f614f48fbf7e42f16d04..1716dccfdfbeb0125b4a24f028363ac5171e2814 100644 (file)
@@ -41,14 +41,6 @@ class CRM_Core_Payment_PaymentExpress extends CRM_Core_Payment {
 
   protected $_mode = NULL;
 
-  /**
-   * We only need one instance of this object. So we use the singleton
-   * pattern and cache the instance in this variable
-   *
-   * @var object
-   */
-  static private $_singleton = NULL;
-
   /**
    * Constructor.
    *
index 3fc3ed9528a1b25af882920dc9c4a04a04ccb747..878b948f96cbca6b164700726f893ebd0c7a68ca 100644 (file)
  */
 class CRM_Core_Payment_PaymentExpressIPN extends CRM_Core_Payment_BaseIPN {
 
-  /**
-   * We only need one instance of this object. So we use the singleton
-   * pattern and cache the instance in this variable
-   *
-   * @var object
-   */
-  static private $_singleton = NULL;
-
   /**
    * Mode of operation: live or test
    *
index 8100aa95319546b764e21f63e5318ed6d543ccc5..d1834686cb66ebd41af9a2ec95cc8e5f8801cbb0 100644 (file)
@@ -44,14 +44,6 @@ class CRM_Core_Payment_Realex extends CRM_Core_Payment {
 
   protected $_params = [];
 
-  /**
-   * We only need one instance of this object. So we use the singleton
-   * pattern and cache the instance in this variable
-   *
-   * @var object
-   */
-  static private $_singleton = NULL;
-
   /**
    * Constructor.
    *
index ba52b0f8a09ed6cca6e6b8e4a07ed5b86a6b3b8c..f0fc635f938a7909e269f59dca388509c6a4c34e 100644 (file)
@@ -102,14 +102,6 @@ class CRM_Core_Payment_eWAY extends CRM_Core_Payment {
   // (not used, implicit in the API, might need to convert?)
   const CHARSET = 'UTF-8';
 
-  /**
-   * We only need one instance of this object. So we use the singleton
-   * pattern and cache the instance in this variable
-   *
-   * @var object
-   */
-  static private $_singleton = NULL;
-
   /**
    * *******************************************************
    * Constructor