WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\Payments

PaymentContext::set_order() public WC 1.0

Set the order context.

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

No Hooks.

Return

null. Nothing.

Usage

$PaymentContext = new PaymentContext();
$PaymentContext->set_order( $order );
$order(WC_Order) (required)
Order object.

Code of PaymentContext::set_order() WC 5.6.0

public function set_order( \WC_Order $order ) {
	$this->order = $order;
}