Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders
PseudoWCPaymentGateway::__construct
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() PseudoWCPaymentGateway:: construct code WC 10.8.1
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;
}
}