Failed Conditions
Push — develop ( 05d10f...8574fc )
by Remco
04:06
created

AbstractIntegration::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 14
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
cc 2
eloc 9
nc 2
nop 0
dl 0
loc 14
ccs 0
cts 11
cp 0
crap 6
rs 9.9666
c 0
b 0
f 0
1
<?php
2
3
namespace Pronamic\WordPress\Pay\Gateways\Ingenico;
4
5
use Pronamic\WordPress\Pay\Gateways\Common\AbstractIntegration as Common_AbstractIntegration;
6
7
abstract class AbstractIntegration extends Common_AbstractIntegration {
8
	public function __construct() {
9
		$this->url           = 'https://secure.ogone.com/';
10
		$this->product_url   = __( 'https://payment-services.ingenico.com/nl/en', 'pronamic_ideal' );
11
		$this->dashboard_url = 'https://secure.ogone.com/';
12
		$this->provider      = 'ogone';
13
		$this->supports      = array(
0 ignored issues
show
Bug Best Practice introduced by
The property supports does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
14
			'webhook',
15
		);
16
17
		// Actions.
18
		$function = array( __NAMESPACE__ . '\Listener', 'listen' );
19
20
		if ( ! has_action( 'wp_loaded', $function ) ) {
21
			add_action( 'wp_loaded', $function );
22
		}
23
	}
24
}
25