Automattic\WooCommerce\Internal\ProductFeed\Integrations

IntegrationInterface::get_product_mapperpublicWC 11.0.0

Get the product mapper for the provider.

Implementations may narrow the return type to a concrete mapper class (or, during its deprecation window, the deprecated ProductMapperInterface) thanks to return type covariance.

Method of the class: IntegrationInterface{}

No Hooks.

Returns

ProductShapeMapperInterface. The product mapper.

Usage

$IntegrationInterface = new IntegrationInterface();
$IntegrationInterface->get_product_mapper(): ProductShapeMapperInterface;

Changelog

Since 11.0.0 Introduced.
Since 11.0.0 Return type widened from ProductMapperInterface to ProductShapeMapperInterface.

IntegrationInterface::get_product_mapper() code WC 11.0.1

public function get_product_mapper(): ProductShapeMapperInterface;