Automattic\WooCommerce\Internal\Admin\Settings\PaymentProviders

PseudoWCPaymentGateway::__constructpublicWC 1.0

Constructor.

Method of the class: PseudoWCPaymentGateway{}

No Hooks.

Returns

null. Nothing (null).

Usage

$PseudoWCPaymentGateway = new PseudoWCPaymentGateway();
$PseudoWCPaymentGateway->__construct( $id, $props );
$id(string) (required)
The gateway ID.
$props(array)
The gateway properties to apply.
Default: array()

PseudoWCPaymentGateway::__construct() code WC 9.9.3

public function __construct( string $id, array $props = array() ) {
	$this->id = $id;

	// Go through the props and set them on the object.
	foreach ( $props as $prop => $value ) {
		$this->$prop = $value;
	}
}