WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\Domain\Services

FeatureGating::__construct() public WC 1.0

Constructor

{} It's a method of the class: FeatureGating{}

No Hooks.

Return

null. Nothing.

Usage

$FeatureGating = new FeatureGating();
$FeatureGating->__construct( $flag, $environment );
$flag(int)
Hardcoded flag value. Useful for tests.
$environment(string)
Hardcoded environment value. Useful for tests.
Default: 'unset'

Code of FeatureGating::__construct() WC 5.7.1

public function __construct( $flag = 0, $environment = 'unset' ) {
	$this->flag        = $flag;
	$this->environment = $environment;
	$this->load_flag();
	$this->load_environment();
}