Automattic\WooCommerce\StoreApi\Payments
PaymentResult::__construct()
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() PaymentResult:: construct code WC 8.7.0
public function __construct( $status = '' ) { if ( $status ) { $this->set_status( $status ); } }