Test Failed
Push — develop ( f70017...24ca99 )
by Reüel
02:51
created

Integration::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 5
nc 1
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Pronamic\WordPress\Pay\Gateways\TargetPay;
4
5
use Pronamic\WordPress\Pay\Gateways\Common\AbstractIntegration;
6
7
/**
8
 * Title: TargetPay integration
9
 * Description:
10
 * Copyright: 2005-2019 Pronamic
11
 * Company: Pronamic
12
 *
13
 * @author  Remco Tolsma
14
 * @version 2.0.0
15
 * @since   1.0.0
16
 */
17
class Integration extends AbstractIntegration {
18
	public function __construct() {
19
		$this->id            = 'targetpay-ideal';
20
		$this->name          = 'TargetPay - iDEAL';
21
		$this->product_url   = __( 'https://www.targetpay.com/info/ideal?setlang=en', 'pronamic_ideal' );
0 ignored issues
show
Bug introduced by
The function __ was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

21
		$this->product_url   = /** @scrutinizer ignore-call */ __( 'https://www.targetpay.com/info/ideal?setlang=en', 'pronamic_ideal' );
Loading history...
22
		$this->dashboard_url = 'https://www.targetpay.com/login';
23
		$this->provider      = 'targetpay';
24
	}
25
26
	public function get_config_factory_class() {
27
		return __NAMESPACE__ . '\ConfigFactory';
28
	}
29
30
	public function get_settings_class() {
31
		return __NAMESPACE__ . '\Settings';
32
	}
33
34
	/**
35
	 * Get required settings for this integration.
36
	 *
37
	 * @see   https://github.com/wp-premium/gravityforms/blob/1.9.16/includes/fields/class-gf-field-multiselect.php#L21-L42
38
	 * @since 1.0.7
39
	 * @return array
40
	 */
41
	public function get_settings() {
42
		$settings = parent::get_settings();
43
44
		$settings[] = 'targetpay';
45
46
		return $settings;
47
	}
48
}
49