Automattic\WooCommerce\Internal\ProductFeed\Integrations
IntegrationInterface::get_product_mapper
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.
Метод класса: IntegrationInterface{}
Хуков нет.
Возвращает
ProductShapeMapperInterface. The product mapper.
Использование
$IntegrationInterface = new IntegrationInterface(); $IntegrationInterface->get_product_mapper(): ProductShapeMapperInterface;
Список изменений
| С версии 11.0.0 | Введена. |
| С версии 11.0.0 | Return type widened from ProductMapperInterface to ProductShapeMapperInterface. |
Код IntegrationInterface::get_product_mapper() IntegrationInterface::get product mapper WC 11.2.1
public function get_product_mapper(): ProductShapeMapperInterface;