Automattic\WooCommerce\StoreApi\Payments

PaymentResult::__construct()publicWC 1.0

Constructor.

Method of the class: PaymentResult{}

No Hooks.

Return

null. Nothing (null).

Usage

$PaymentResult = new PaymentResult();
$PaymentResult->__construct( $status );
$status(string)
Sets the payment status for the result.
Default: ''

PaymentResult::__construct() code WC 8.7.0

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