Automattic\WooCommerce\StoreApi\Payments

PaymentResult::__get()publicWC 1.0

Magic getter for protected properties.

Метод класса: PaymentResult{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$PaymentResult = new PaymentResult();
$PaymentResult->__get( $name );
$name(строка) (обязательный)
Property name.

Код PaymentResult::__get() WC 8.7.0

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