Automattic\WooCommerce\Blueprint

StepProcessorResult::__constructpublicWC 1.0

Construct.

Method of the class: StepProcessorResult{}

No Hooks.

Returns

null. Nothing (null).

Usage

$StepProcessorResult = new StepProcessorResult();
$StepProcessorResult->__construct( $success, $step_name );
$success(true|false) (required)
Indicate whether the process was success or not.
$step_name(string) (required)
The name of the step.

StepProcessorResult::__construct() code WC 9.9.5

public function __construct( bool $success, string $step_name ) {
	$this->success   = $success;
	$this->step_name = $step_name;
}