Failed Conditions
Push — develop ( 4a19a9...7c8768 )
by Remco
06:08
created

GiropayGateway::get_icon()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 2
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
/**
3
 * Giropay 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 Giropay gateway
17
 *
18
 * @author  Remco Tolsma
19
 * @version 2.0.1
20
 * @since   1.0.0
21
 */
22
class GiropayGateway extends Gateway {
23
	/**
24
	 * Payment method.
25
	 *
26
	 * @var string
27
	 */
28
	protected $payment_method = PaymentMethods::GIROPAY;
29
30
	/**
31
	 * Get alias class name of this gateway.
32
	 *
33
	 * @return string
34
	 */
35
	public function get_alias() {
36
		return 'MeprGiropayGateway';
37
	}
38
39
	/**
40
	 * Get icon function, please note that this is not a MemberPress function.
41
	 *
42
	 * @since 1.0.2
43
	 * @return string
44
	 */
45
	protected function get_icon() {
46
		return PaymentMethods::get_icon_url( PaymentMethods::GIROPAY );
47
	}
48
}
49