PropertyQuantityReadService
in package
implements
PropertyQuantityReadServiceInterface
Class PropertyQuantityReadService
Interfaces, Classes and Traits
Table of Contents
- $repository : PropertyReadRepositoryInterface
- $criteria : CheckStockCriteria
- $textManager : TextManager
- __construct() : mixed
- PropertyQuantityReadService constructor.
- getAvailableQuantityBy() : AbstractPropertyQuantity
- getAvailableQuantityByCombination() : AvailableCombinationQuantity|null
- createModifierIdCollection() : ModifierIdentifierCollectionInterface
Properties
$repository
protected
PropertyReadRepositoryInterface
$repository
$criteria
private
CheckStockCriteria
$criteria
$textManager
private
TextManager
$textManager
Methods
__construct()
PropertyQuantityReadService constructor.
public
__construct(PropertyReadRepositoryInterface $repository, CheckStockCriteria $criteria, TextManager $textManager) : mixed
Parameters
- $repository : PropertyReadRepositoryInterface
- $criteria : CheckStockCriteria
- $textManager : TextManager
Return values
mixed —getAvailableQuantityBy()
public
getAvailableQuantityBy(SellingUnitId $id, ProductDataInterface $product, QuantityInterface $requested) : AbstractPropertyQuantity
Parameters
- $id : SellingUnitId
- $product : ProductDataInterface
- $requested : QuantityInterface
Tags
Return values
AbstractPropertyQuantity —getAvailableQuantityByCombination()
public
getAvailableQuantityByCombination(SellingUnitId $sellingUnitId, Combination $combination, ProductDataInterface $product, QuantityInterface $requested) : AvailableCombinationQuantity|null
Parameters
- $sellingUnitId : SellingUnitId
- $combination : Combination
- $product : ProductDataInterface
- $requested : QuantityInterface
Return values
AvailableCombinationQuantity|null —createModifierIdCollection()
protected
createModifierIdCollection(SellingUnitId $id) : ModifierIdentifierCollectionInterface
Parameters
- $id : SellingUnitId