Automattic\WooCommerce\StoreApi\Payments
PaymentResult::__get
Magic getter for protected properties.
Метод класса: PaymentResult{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$PaymentResult = new PaymentResult(); $PaymentResult->__get( $name );
- $name(строка) (обязательный)
- Property name.
Код PaymentResult::__get() PaymentResult:: get WC 11.0.1
public function __get( $name ) {
if ( in_array( $name, [ 'status', 'payment_details', 'redirect_url' ], true ) ) {
return $this->$name;
}
return null;
}