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

	public static function get(): ObjectType {
		if ( null === self::$instance ) {
			self::$instance = new ObjectType(
				array(
					'name'        => 'ProductDimensions',
					'description' => __( 'Physical dimensions and weight of 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;
	}
}
