Automattic\WooCommerce\Internal\Api\Autogenerated\GraphQLTypes\Input
Dimensions::get
Method of the class: Dimensions{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = Dimensions::get(): InputObjectType;
Dimensions::get() Dimensions::get code WC 10.9.1
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;
}