Automattic\WooCommerce\Api\Mutations\Products

CreateProduct::init │ public │ WC 1.0

Inject dependencies via the DI container.

Method of the class: CreateProduct{}

No Hooks.

Returns

null. Nothing (null).

Usage

$CreateProduct = new CreateProduct();
$CreateProduct->init( $repository ): void;
$repository(ProductRepository) (required)
The product repository.

CreateProduct::init() code WC 11.1.2

final public function init( ProductRepository $repository ): void {
	$this->repository = $repository;
}