Automattic\WooCommerce\StoreApi\Payments

PaymentContext::__get()publicWC 1.0

Magic getter for protected properties.

Method of the class: PaymentContext{}

No Hooks.

Return

null. Nothing (null).

Usage

$PaymentContext = new PaymentContext();
$PaymentContext->__get( $name );
$name(string) (required)
Property name.

PaymentContext::__get() code WC 9.3.3

public function __get( $name ) {
	if ( in_array( $name, [ 'payment_method', 'order', 'payment_data' ], true ) ) {
		return $this->$name;
	}
	return null;
}