Automattic\WooCommerce\Blocks\Payments

Api::__construct()publicWC 1.0

Constructor

Метод класса: Api{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Api = new Api();
$Api->__construct( $payment_method_registry, $asset_registry );
$payment_method_registry(PaymentMethodRegistry) (обязательный)
An instance of Payment Method Registry.
$asset_registry(AssetDataRegistry) (обязательный)
Used for registering data to pass along to the request.

Код Api::__construct() WC 8.7.0

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