Automattic\WooCommerce\Admin\RemoteSpecs\RuleProcessors

WCAdminActiveForRuleProcessor::__construct()publicWC 1.0

Constructor

Method of the class: WCAdminActiveForRuleProcessor{}

No Hooks.

Return

null. Nothing (null).

Usage

$WCAdminActiveForRuleProcessor = new WCAdminActiveForRuleProcessor();
$WCAdminActiveForRuleProcessor->__construct( $wcadmin_active_for_provider );
$wcadmin_active_for_provider(object)
Provides the amount of time wcadmin has been active for.
Default: null

WCAdminActiveForRuleProcessor::__construct() code WC 9.0.1

public function __construct( $wcadmin_active_for_provider = null ) {
	$this->wcadmin_active_for_provider = null === $wcadmin_active_for_provider
		? new WCAdminActiveForProvider()
		: $wcadmin_active_for_provider;
}