Automattic\WooCommerce\StoreApi\Payments
PaymentContext::__get()
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() 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; }