Passed
Push — develop ( 511324...a79f51 )
by Remco
02:29
created

Integration   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 39
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 10
dl 0
loc 39
c 0
b 0
f 0
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A get_config_factory_class() 0 2 1
A get_settings_class() 0 2 1
A get_settings() 0 6 1
A __construct() 0 5 1
1
<?php
2
/**
3
 * Integration
4
 *
5
 * @author    Pronamic <[email protected]>
6
 * @copyright 2005-2018 Pronamic
7
 * @license   GPL-3.0-or-later
8
 * @package   Pronamic\WordPress\Pay\Gateways\Adyen
9
 */
10
11
namespace Pronamic\WordPress\Pay\Gateways\Adyen;
12
13
use Pronamic\WordPress\Pay\Gateways\Common\AbstractIntegration;
14
15
/**
16
 * Integration
17
 *
18
 * @author  Remco Tolsma
19
 * @version 2.0.0
20
 * @since   1.0.0
21
 */
22
class Integration extends AbstractIntegration {
23
	public function __construct() {
24
		$this->id         = 'adyen';
25
		$this->name       = 'Adyen';
26
		$this->url        = 'http://www.adyen.com/';
27
		$this->provider   = 'adyen';
28
	}
29
30
	/**
31
	 * Get config factory class.
32
	 *
33
	 * @return string
34
	 */
35
	public function get_config_factory_class() {
36
		return __NAMESPACE__ . '\ConfigFactory';
37
	}
38
39
	/**
40
	 * Get settings class.
41
	 *
42
	 * @return string
43
	 */
44
	public function get_settings_class() {
45
		return __NAMESPACE__ . '\Settings';
46
	}
47
48
	/**
49
	 * Get required settings for this integration.
50
	 *
51
	 * @link https://github.com/wp-premium/gravityforms/blob/1.9.16/includes/fields/class-gf-field-multiselect.php#L21-L42
52
	 * @since 1.1.6
53
	 * @return array
54
	 */
55
	public function get_settings() {
56
		$settings = parent::get_settings();
57
58
		$settings[] = 'adyen';
59
60
		return $settings;
61
	}
62
}
63