Failed Conditions
Push — master ( 9263c5...be09a5 )
by Reüel
11:06 queued 04:51
created

Przelewy24Gateway   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 25
ccs 0
cts 5
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get_icon() 0 2 1
A get_alias() 0 2 1
1
<?php
2
/**
3
 * Przelewy24 gateway
4
 *
5
 * @author    Pronamic <[email protected]>
6
 * @copyright 2005-2020 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
use Pronamic\WordPress\Pay\Extensions\MemberPress\Pronamic;
15
16
/**
17
 * WordPress pay MemberPress Przelewy24 gateway
18
 *
19
 * @author  Reüel van der Steege
20
 * @version 2.2.0
21
 * @since   2.2.0
22
 */
23
class Przelewy24Gateway extends Gateway {
24
	/**
25
	 * Payment method.
26
	 *
27
	 * @var string
28
	 */
29
	protected $payment_method = PaymentMethods::PRZELEWY24;
30
31
	/**
32
	 * Get alias class name of this gateway.
33
	 *
34
	 * @return string
35
	 */
36
	public function get_alias() {
37
		return 'MeprPrzelewy24Gateway';
38
	}
39
40
	/**
41
	 * Get icon function, please note that this is not a MemberPress function.
42
	 *
43
	 * @since 2.0.8
44
	 * @return string
45
	 */
46
	protected function get_icon() {
47
		return Pronamic::get_method_icon_url( $this->payment_method );
48
	}
49
}
50