WordPress at a glance
function is not described

Automattic\WooCommerce\Blocks\Payments

Api::__construct() public WC 1.0

Constructor

{} It's a method of the class: Api{}

No Hooks.

Return

Null. Nothing.

Usage

$Api = new Api();
$Api->__construct( $payment_method_registry, $asset_registry );
$payment_method_registry(PaymentMethodRegistry) (required)
An instance of Payment Method Registry.
$asset_registry(AssetDataRegistry) (required)
Used for registering data to pass along to the request.

Code of Api::__construct() WC 5.0.0

<?php
public function __construct( PaymentMethodRegistry $payment_method_registry, AssetDataRegistry $asset_registry ) {
	$this->payment_method_registry = $payment_method_registry;
	$this->asset_registry          = $asset_registry;
	$this->init();
}