Test Failed
Push — develop ( 72b4a7...3409b4 )
by Remco
08:40
created

ApplePayGateway   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
dl 0
loc 14
ccs 0
cts 8
cp 0
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 10 1
1
<?php
2
/**
3
 * Apple Pay gateway
4
 *
5
 * @author    Pronamic <[email protected]>
6
 * @copyright 2005-2021 Pronamic
7
 * @license   GPL-3.0-or-later
8
 * @package   Pronamic\WordPress\Pay\Extensions\MemberPress
9
 */
10
11
namespace Pronamic\WordPress\Pay\Extensions\MemberPress\Gateways;
12
13
use Pronamic\WordPress\Pay\Core\PaymentMethods;
14
15
/**
16
 * WordPress pay MemberPress Apple Pay gateway
17
 *
18
 * @author  Reüel van der Steege
19
 * @version 3.1.0
20
 * @since   2.3.0
21
 */
22
class ApplePayGateway extends Gateway {
23
	/**
24
	 * Constructs and initialize Apple Pay gateway.
25
	 */
26
	public function __construct() {
27
		parent::__construct( 'MeprApplePayGateway', PaymentMethods::APPLE_PAY );
28
29
		// Capabilities.
30
		$this->capabilities = array(
0 ignored issues
show
Bug Best Practice introduced by
The property capabilities does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
31
			'process-payments',
32
			'create-subscriptions',
33
			'cancel-subscriptions',
34
			'update-subscriptions',
35
			'subscription-trial-payment',
36
		);
37
	}
38
}
39