Automattic\WooCommerce\Blocks\Domain\Services
FeatureGating::__construct()
Constructor
Метод класса: FeatureGating{}
Хуков нет.
Возвращает
null
. Ничего (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() FeatureGating:: construct WC 8.7.0
public function __construct( $flag = 0, $environment = 'unset' ) { $this->flag = $flag; $this->environment = $environment; $this->load_flag(); $this->load_environment(); }