Automattic\WooCommerce\Blocks\Domain\Services

FeatureGating::__construct()publicWC 1.0

Constructor

Метод класса: FeatureGating{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$FeatureGating = new FeatureGating();
$FeatureGating->__construct( $flag, $environment );
$flag(int)
Hardcoded flag value. Useful for tests.
$environment(строка)
Hardcoded environment value. Useful for tests.
По умолчанию: 'unset'

Код FeatureGating::__construct() WC 7.1.0

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