Automattic\WooCommerce\Internal\Api\Autogenerated\GraphQLTypes\Input
Dimensions{}
No Hooks.
Usage
$Dimensions = new Dimensions(); // use class methods
Methods
- public static get()
Dimensions{} Dimensions{} code WC 10.9.1
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;
}
}