<?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 SelectedAttribute {
	private static ?ObjectType $instance = null;

	public static function get(): ObjectType {
		if ( null === self::$instance ) {
			self::$instance = new ObjectType(
				array(
					'name'        => 'SelectedAttribute',
					'description' => __( 'A selected attribute value on a product variation.', 'woocommerce' ),
					'fields'      => fn() => array(
						'name'  => array(
							'type'        => Type::nonNull( Type::string() ),
							'description' => __( 'The attribute name or slug.', 'woocommerce' ),
						),
						'value' => array(
							'type'        => Type::nonNull( Type::string() ),
							'description' => __( 'The selected attribute value.', 'woocommerce' ),
						),
					),
				)
			);
		}
		return self::$instance;
	}
}
