Automattic\WooCommerce\StoreApi\Payments

PaymentResult::__construct()publicWC 1.0

Constructor.

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

Хуков нет.

Возвращает

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

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

$PaymentResult = new PaymentResult();
$PaymentResult->__construct( $status );
$status(строка)
Sets the payment status for the result.
По умолчанию: ''

Код PaymentResult::__construct() WC 8.7.0

public function __construct( $status = '' ) {
	if ( $status ) {
		$this->set_status( $status );
	}
}