Automattic\WooCommerce\Blocks\Domain

Package::__construct()publicWC 1.0

Constructor

Method of the class: Package{}

No Hooks.

Return

null. Nothing (null).

Usage

$Package = new Package();
$Package->__construct( $version, $plugin_path, $deprecated );
$version(string) (required)
Version of the plugin.
$plugin_path(string) (required)
Path to the main plugin file.
$deprecated(FeatureGating)
Deprecated Feature gating class.
Default: null

Package::__construct() code WC 9.7.1

public function __construct( $version, $plugin_path, $deprecated = null ) {
	if ( null !== $deprecated ) {
		wc_deprecated_argument( 'FeatureGating', '9.6', 'FeatureGating class is deprecated, please use wp_get_environment_type() instead.' );
		$this->feature_gating = new FeatureGating();
	}
	$this->version = $version;
	$this->path    = $plugin_path;
}