Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders
PseudoWCPaymentGateway::__construct
Constructor.
Метод класса: PseudoWCPaymentGateway{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$PseudoWCPaymentGateway = new PseudoWCPaymentGateway(); $PseudoWCPaymentGateway->__construct( $id, $props );
- $id(строка) (обязательный)
- The gateway ID.
- $props(массив)
- The gateway properties to apply.
По умолчанию:array()
Код PseudoWCPaymentGateway::__construct() PseudoWCPaymentGateway:: construct WC 11.0.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;
}
}