WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\Payments

PaymentContext::__get() public WC 1.0

Magic getter for protected properties.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of PaymentContext::__get() WC 5.6.0

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