Automattic\WooCommerce\StoreApi\Payments

PaymentResult::__get()publicWC 1.0

Magic getter for protected properties.

Method of the class: PaymentResult{}

No Hooks.

Return

null. Nothing (null).

Usage

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

PaymentResult::__get() code WC 8.7.0

public function __get( $name ) {
	if ( in_array( $name, [ 'status', 'payment_details', 'redirect_url' ], true ) ) {
		return $this->$name;
	}
	return null;
}