FeedInterface.php
2 weeks ago
FeedValidatorInterface.php
5 months ago
ProductLoader.php
5 months ago
ProductMapperInterface.php
5 months ago
ProductWalker.php
5 months ago
WalkerProgress.php
5 months ago
ProductMapperInterface.php
26 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Product Mapper Interface. |
| 4 | * |
| 5 | * @package Automattic\WooCommerce\Internal\ProductFeed |
| 6 | */ |
| 7 | |
| 8 | declare(strict_types=1); |
| 9 | |
| 10 | namespace Automattic\WooCommerce\Internal\ProductFeed\Feed; |
| 11 | |
| 12 | /** |
| 13 | * Product Mapper Interface. |
| 14 | * |
| 15 | * @since 10.5.0 |
| 16 | */ |
| 17 | interface ProductMapperInterface { |
| 18 | /** |
| 19 | * Map a product to a feed row. |
| 20 | * |
| 21 | * @param \WC_Product $product The product to map. |
| 22 | * @return array The feed row. |
| 23 | */ |
| 24 | public function map_product( \WC_Product $product ): array; |
| 25 | } |
| 26 |