Automattic\WooCommerce\StoreApi\Payments
PaymentResult::__construct
Constructor.
Method of the class: PaymentResult{}
No Hooks.
Returns
null. Nothing (null).
Usage
$PaymentResult = new PaymentResult(); $PaymentResult->__construct( $status );
- $status(string)
- Sets the payment status for the result.
Default:''
PaymentResult::__construct() PaymentResult:: construct code WC 10.8.1
public function __construct( $status = '' ) {
if ( $status ) {
$this->set_status( $status );
}
}