<?php

namespace Fotogenic_AI;

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

/**
 * Fallback product image source adapter when no compat implementation is active.
 * Returns WP_Error with woocommerce_not_active / 503.
 */
final class Product_Image_Source_Adapter_Fallback implements ProductImageSourceAdapter {

	/** @return array|\WP_Error */
	public function get_image_ids_for_product( int $product_id ) {
		return new \WP_Error( 'woocommerce_not_active', __( 'WooCommerce is not active.', 'fotogenic-ai' ), [ 'status' => 503 ] );
	}
}
