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
FeedValidatorInterface.php
27 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Feed Validator 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 | * Feed Validator Interface. |
| 14 | * |
| 15 | * @since 10.5.0 |
| 16 | */ |
| 17 | interface FeedValidatorInterface { |
| 18 | /** |
| 19 | * Validate a single entry. |
| 20 | * |
| 21 | * @param array $row The entry to validate. |
| 22 | * @param \WC_Product $product The related product. Will be updated with validation status. |
| 23 | * @return string[] Validation issues. |
| 24 | */ |
| 25 | public function validate_entry( array $row, \WC_Product $product ): array; |
| 26 | } |
| 27 |