swissChili | f0cbdc3 | 2023-01-05 17:21:38 -0500 | [diff] [blame] | 1 | <?php |
| 2 | if ( ! defined( 'ABSPATH' ) ) { |
| 3 | exit; |
| 4 | } |
| 5 | |
| 6 | /** |
| 7 | * DEPRECATED DO NOT USE!! |
| 8 | */ |
| 9 | if ( ! class_exists( 'WC_Stripe_Apple_Pay' ) ) { |
| 10 | class WC_Stripe_Apple_Pay { |
| 11 | /** |
| 12 | * This Instance. |
| 13 | * |
| 14 | * @var |
| 15 | */ |
| 16 | private static $_this; |
| 17 | |
| 18 | public function __construct() { |
| 19 | self::$_this = $this; |
| 20 | } |
| 21 | |
| 22 | public static function instance() { |
| 23 | WC_Stripe_Logger::log( 'DEPRECATED! WC_Stripe_Apple_Pay class has been hard deprecated. Please remove any code that references this class or instance. This class will be removed by version 4.2' ); |
| 24 | return self::$_this; |
| 25 | } |
| 26 | |
| 27 | public function __get( $var ) { |
| 28 | return null; |
| 29 | } |
| 30 | |
| 31 | public function __call( $name, $arguments ) { |
| 32 | return null; |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 | |
| 37 | new WC_Stripe_Apple_Pay(); |