ReaderService
in package
implements
ReaderServiceInterface
Interfaces, Classes and Traits
Table of Contents
- $downloadStockCheck : bool
- $repository : RepositoryInterface
- $attributeStockCheck : bool
- $stockCheck : bool
- __construct() : mixed
- ReaderService constructor.
- getQuantity() : ModifierQuantityInterface
- isDownloadModifier() : bool
Properties
$downloadStockCheck
protected
bool
$downloadStockCheck
$repository
protected
RepositoryInterface
$repository
$attributeStockCheck
private
bool
$attributeStockCheck
$stockCheck
private
bool
$stockCheck
Methods
__construct()
ReaderService constructor.
public
__construct(RepositoryInterface $repository, bool $stockCheck, bool $attributeStockCheck, bool $downloadStockCheck) : mixed
Parameters
- $repository : RepositoryInterface
- $stockCheck : bool
- $attributeStockCheck : bool
- $downloadStockCheck : bool
Return values
mixed —getQuantity()
public
getQuantity(ProductId $productId, AttributeModifierIdentifier $modifierId, ProductDataInterface $product, QuantityInterface $quantity) : ModifierQuantityInterface
Parameters
- $productId : ProductId
- $modifierId : AttributeModifierIdentifier
- $product : ProductDataInterface
- $quantity : QuantityInterface
Tags
Return values
ModifierQuantityInterface —isDownloadModifier()
protected
isDownloadModifier(ProductId $productId, AttributeModifierIdentifier $identifier) : bool
Parameters
- $productId : ProductId
- $identifier : AttributeModifierIdentifier