<?php
declare(strict_types=1);

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

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

use Automattic\WooCommerce\Api\Infrastructure\Schema\InputObjectType;
use Automattic\WooCommerce\Api\Infrastructure\Schema\Type;

class Dimensions {
	private static ?InputObjectType $instance = null;

	public static function get(): InputObjectType {
		if ( null === self::$instance ) {
			self::$instance = new InputObjectType(
				array(
					'name'        => 'DimensionsInput',
					'description' => __( 'Physical dimensions and weight for a product.', 'woocommerce' ),
					'fields'      => fn() => array(
						'length' => array(
							'type'        => Type::float(),
							'description' => __( 'The product length.', 'woocommerce' ),
						),
						'width'  => array(
							'type'        => Type::float(),
							'description' => __( 'The product width.', 'woocommerce' ),
						),
						'height' => array(
							'type'        => Type::float(),
							'description' => __( 'The product height.', 'woocommerce' ),
						),
						'weight' => array(
							'type'        => Type::float(),
							'description' => __( 'The product weight.', 'woocommerce' ),
						),
					),
				)
			);
		}
		return self::$instance;
	}
}
