<?php
if ( ! defined( 'ABSPATH' ) ) exit;
class SBPAI_Media_Fetcher {
    /**
     * Generates a local image placeholder and sideloads it into WordPress.
     * Returns the attachment ID.
     */
    public static function fetch_and_sideload( $width = 800, $height = 600 ) {
        if ( class_exists( 'SBPAI_Service_Media' ) ) {
            return SBPAI_Service_Media::fetch_image( $width, $height );
        }
        return false;
    }
}
