Automattic\WooCommerce\StoreApi\Payments
PaymentContext::__get
Magic getter for protected properties.
Method of the class: PaymentContext{}
No Hooks.
Returns
null. Nothing (null).
Usage
$PaymentContext = new PaymentContext(); $PaymentContext->__get( $name );
- $name(string) (required)
- Property name.
PaymentContext::__get() PaymentContext:: get code WC 10.8.1
public function __get( $name ) {
if ( in_array( $name, [ 'payment_method', 'order', 'payment_data' ], true ) ) {
return $this->$name;
}
return null;
}