• File: FeedValidator.php
  • Full Path: /home/slvgwrnz/public_html/wp-content/plugins/woocommerce/src/Internal/ProductFeed/Integrations/POSCatalog/FeedValidator.php
  • Date Modified: 01/19/2026 6:46 AM
  • File size: 855 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
/**
 *  Feed Validator class.
 *
 * @package Automattic\WooCommerce\Internal\ProductFeed
 */

declare(strict_types=1);

namespace Automattic\WooCommerce\Internal\ProductFeed\Integrations\POSCatalog;

use Automattic\WooCommerce\Internal\ProductFeed\Feed\FeedValidatorInterface;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Simple field validator for the POS catalog.
 *
 * @since 10.5.0
 */
final class FeedValidator implements FeedValidatorInterface {
	/**
	 * Validate single feed row using schema.
	 *
	 * @param array       $entry   Product data row to validate.
	 * @param \WC_Product $product The related product. Will be updated with validation status.
	 * @return array Array of validation issues.
	 */
	public function validate_entry( array $entry, \WC_Product $product ): array { //phpcs:ignore VariableAnalysis
		return array();
	}
}