Failed Conditions
Push — develop ( 1f8c75...611b60 )
by Remco
05:42
created

src/Gateways/DirectDebitIDealGateway.php (2 issues)

1
<?php
2
/**
3
 * Direct Debit mandate via iDEAL 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
use Pronamic\WordPress\Pay\Plugin;
15
16
/**
17
 * WordPress pay MemberPress Direct Debit mandate via iDEAL gateway
18
 *
19
 * @author  Reüel van der Steege
20
 * @version 2.0.1
21
 * @since   2.0.0
22
 */
23
class DirectDebitIDealGateway extends Gateway {
0 ignored issues
show
The type Pronamic\WordPress\Pay\E...rPress\Gateways\Gateway was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
24
	/**
25
	 * Constructs and initialize credit card gateway.
26
	 */
27
	public function __construct() {
28
		parent::__construct( 'MeprDirectDebitIDealGateway', PaymentMethods::DIRECT_DEBIT_IDEAL );
29
30
		// Capabilities.
31
		$this->capabilities = array(
0 ignored issues
show
Bug Best Practice introduced by
The property capabilities does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
32
			'process-payments',
33
			'create-subscriptions',
34
			'cancel-subscriptions',
35
			'update-subscriptions',
36
			'suspend-subscriptions',
37
			'resume-subscriptions',
38
			'subscription-trial-payment',
39
		);
40
	}
41
}
42