ReserveQuantityEqualProductQuantityStrategy implements Strategy
Automatic reservation of the quantity equal to the quantity of product in the deal.
As soon as the user manually changes product quantity, the automation is disabled.
Table of Contents
Interfaces
- Strategy
- The strategy of reserving products rows.
Properties
- $defaultDateReserveEnd : Date|null
- $defaultStoreId : int
Methods
- reservation() : ReservationResult
- Reservation all products of entity.
- reservationProductRow() : ReservationResult
- Reservation one concrete product row.
Properties
$defaultDateReserveEnd
public
Date|null
$defaultDateReserveEnd
$defaultStoreId
public
int
$defaultStoreId
Methods
reservation()
Reservation all products of entity.
public
reservation(int $ownerTypeId, int $ownerId) : ReservationResult
Parameters
- $ownerTypeId : int
- $ownerId : int
Tags
Return values
ReservationResultreservationProductRow()
Reservation one concrete product row.
public
reservationProductRow(int $productRowId, float $quantity, int $storeId, Date|null $dateReserveEnd) : ReservationResult
Parameters
- $productRowId : int
- $quantity : float
- $storeId : int
- $dateReserveEnd : Date|null