<?php
declare(strict_types=1);

// THIS FILE IS AUTO-GENERATED. DO NOT EDIT MANUALLY.

namespace Automattic\WooCommerce\Internal\Api\Autogenerated\GraphQLTypes\Output;

use Automattic\WooCommerce\Internal\Api\Schema\ObjectType;
use Automattic\WooCommerce\Internal\Api\Schema\Type;

class ProductImage {
	private static ?ObjectType $instance = null;

	public static function get(): ObjectType {
		if ( null === self::$instance ) {
			self::$instance = new ObjectType(
				array(
					'name'        => 'ProductImage',
					'description' => __( 'Represents a product image.', 'woocommerce' ),
					'fields'      => fn() => array(
						'id'       => array(
							'type'        => Type::nonNull( Type::int() ),
							'description' => __( 'The image attachment ID.', 'woocommerce' ),
						),
						'url'      => array(
							'type'        => Type::nonNull( Type::string() ),
							'description' => __( 'The image URL.', 'woocommerce' ),
						),
						'alt'      => array(
							'type'        => Type::nonNull( Type::string() ),
							'description' => __( 'The image alt text.', 'woocommerce' ),
						),
						'position' => array(
							'type'        => Type::nonNull( Type::int() ),
							'description' => __( 'The image display position.', 'woocommerce' ),
						),
					),
				)
			);
		}
		return self::$instance;
	}
}
