<?php

namespace PostenBringCheckout\admin\api\models;

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

class OrderItem {
	public int $quantity;
	public ?int $weight_in_grams;
	public string $name;

	public function __construct( int $quantity, ?string $weight, string $name ) {
		$this->weight_in_grams = $weight ?? 100;
		$this->name            = $name;
		$this->quantity        = $quantity;
	}
}
