Failed Conditions
Push — develop ( d3f65e...bf2dba )
by Remco
04:24
created

PayPalGateway::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 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 2
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * PayPal gateway
4
 *
5
 * @author    Pronamic <[email protected]>
6
 * @copyright 2005-2019 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\Plugin;
15
16
/**
17
 * WordPress pay MemberPress PayPal gateway
18
 *
19
 * @author  Reüel van der Steege
20
 * @version 2.0.1
21
 * @since   1.0.5
22
 */
23
class PayPalGateway extends Gateway {
24
	/**
25
	 * Payment method.
26
	 *
27
	 * @var string
28
	 */
29
	protected $payment_method = PaymentMethods::PAYPAL;
30
31
	/**
32
	 * Get icon function, please not that this is not a MemberPress function.
33
	 *
34
	 * @since 1.0.2
35
	 * @return string
36
	 */
37
	protected function get_icon() {
38
		return plugins_url( 'images/paypal/icon-32x32.png', Plugin::$file );
39
	}
40
41
	/**
42
	 * Get alias class name of this gateway.
43
	 *
44
	 * @return string
45
	 */
46
	public function get_alias() {
47
		return 'MeprPronamicPayPalGateway';
48
	}
49
}
50