FeedInterface.php
2 months ago
FeedLockException.php
1 month ago
FeedValidatorInterface.php
7 months ago
ProductLoader.php
7 months ago
ProductMapperInterface.php
1 month ago
ProductWalker.php
1 month ago
ResumableFeedInterface.php
1 month ago
WalkerProgress.php
7 months ago
ProductMapperInterface.php
32 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 | use Automattic\WooCommerce\Internal\ProductFeed\Mapping\ProductShapeMapperInterface; |
| 13 | |
| 14 | /** |
| 15 | * Product Mapper Interface. |
| 16 | * |
| 17 | * Push-feed flavor of the product-shape mapping contract: implementations map a |
| 18 | * product to a feed row that is validated by a FeedValidatorInterface and written |
| 19 | * to a FeedInterface. The mapping contract itself (map_product()) is inherited |
| 20 | * from ProductShapeMapperInterface. |
| 21 | * |
| 22 | * Existing implementations keep working unchanged and automatically satisfy |
| 23 | * ProductShapeMapperInterface; they should migrate to implementing that |
| 24 | * interface directly before this one is removed. |
| 25 | * |
| 26 | * @since 10.5.0 |
| 27 | * @since 11.0.0 Extends ProductShapeMapperInterface; the map_product() contract is inherited unchanged. |
| 28 | * @deprecated 11.0.0 Implement Mapping\ProductShapeMapperInterface instead. |
| 29 | */ |
| 30 | interface ProductMapperInterface extends ProductShapeMapperInterface { |
| 31 | } |
| 32 |