Automattic\WooCommerce\Internal\CostOfGoodsSold

CostOfGoodsSoldController::init()publicWC 1.0

Initialize the instance, runs when the instance is created by the dependency injection container.

Method of the class: CostOfGoodsSoldController{}

No Hooks.

Return

null. Nothing (null).

Usage

$CostOfGoodsSoldController = new CostOfGoodsSoldController();
$CostOfGoodsSoldController->init( $features_controller );
$features_controller(FeaturesController) (required)
The instance of FeaturesController to use.

CostOfGoodsSoldController::init() code WC 9.6.0

final public function init( FeaturesController $features_controller ) {
	$this->features_controller = $features_controller;
}