Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments

WooPaymentsRestController::initpublicWC 1.0

Initialize the class instance.

Method of the class: WooPaymentsRestController{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WooPaymentsRestController = new WooPaymentsRestController();
$WooPaymentsRestController->init( $payments, $woopayments ): void;
$payments(Payments) (required)
The general payments settings page service.
$woopayments(WooPaymentsService) (required)
The WooPayments-specific Payments settings page service.

WooPaymentsRestController::init() code WC 10.7.0

final public function init( Payments $payments, WooPaymentsService $woopayments ): void {
	$this->payments    = $payments;
	$this->woopayments = $woopayments;
}