<?php

namespace PostenBringCheckout\admin\api\models;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class OrderRequestDimensions {
	public ?float $height;
	public ?float $width;
	public ?float $length;

	public function __construct( array $data ) {
		$this->height = $data['heightInCm'] ?? null;
		$this->width  = $data['widthInCm'] ?? null;
		$this->length = $data['lengthInCm'] ?? null;
	}
}
