Completed
Push — master ( 3f7047...467edf )
by Roy
02:13
created

WC_Stripe_Apple_Pay   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 18
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A instance() 0 4 1
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
23
		public static function instance() {
24
			WC_Stripe_Logger::log( "DEPRECATED! WC_Stripe_Apple_Pay class has been hard deprecated. Please remove any code that references this class or instance." );
25
			return self::$_this;
26
		}	
27
	}
28
}
29
30
new WC_Stripe_Apple_Pay();
31