ReservationLine
in package
FinalYes
One requested reservation line. Value object (no DI — the `*DTO*` folder mask in config/common.neon keeps it out of the container scan).
A single reserve() call may carry several lines for the same card — the service aggregates them to a stockItemId => Σ quantity map for idempotence comparison and the waterfall allocation.
Table of Contents
Properties
- $quantity : string
- $stockItemId : int
Methods
- __construct() : mixed
Properties
$quantity read-only
public
string
$quantity
$stockItemId read-only
public
int
$stockItemId
Methods
__construct()
public
__construct(int $stockItemId, string $quantity) : mixed
Parameters
- $stockItemId : int
- $quantity : string