Automattic\WooCommerce\Blocks\Payments
Api::__construct()
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() Api:: construct WC 9.7.1
public function __construct( PaymentMethodRegistry $payment_method_registry, AssetDataRegistry $asset_registry ) { $this->payment_method_registry = $payment_method_registry; $this->asset_registry = $asset_registry; }