AttributeModifierReader
in package
implements
AttributeModifierReaderInterface
Class AttributeModifierReader
Interfaces, Classes and Traits
Table of Contents
- $attributeStockCheck : bool
- $builder : ModifierDTOBuilderInterface
- $checkStockBeforeShoppingCart : bool
- $connection : Connection
- $hideAttributesOutOfStock : bool
- $showAttributesStock : bool
- $stockAllowCheckout : bool
- $stockCheck : bool
- __construct() : mixed
- AttributeModifierReader constructor.
- getModifierByProduct() : ModifierDTOCollectionInterface
- getModifierBySellingUnit() : mixed
- hasStock() : bool|null
- isSelectable() : bool
- setSelectedRecords() : mixed
Properties
$attributeStockCheck
private
bool
$attributeStockCheck
$builder
private
ModifierDTOBuilderInterface
$builder
$checkStockBeforeShoppingCart
private
bool
$checkStockBeforeShoppingCart
$connection
private
Connection
$connection
$hideAttributesOutOfStock
private
bool
$hideAttributesOutOfStock
$showAttributesStock
private
bool
$showAttributesStock
$stockAllowCheckout
private
bool
$stockAllowCheckout
$stockCheck
private
bool
$stockCheck
Methods
__construct()
AttributeModifierReader constructor.
public
__construct(Connection $connection, ModifierDTOBuilderInterface $builder, bool $stockCheck, bool $attributeStockCheck, bool $stockAllowCheckout, bool $setAttributesOutOfStock, bool $checkStockBeforeShoppingCart, bool $showAttributesStock) : mixed
Parameters
- $connection : Connection
- $builder : ModifierDTOBuilderInterface
- $stockCheck : bool
- $attributeStockCheck : bool
- $stockAllowCheckout : bool
- $setAttributesOutOfStock : bool
- $checkStockBeforeShoppingCart : bool
- $showAttributesStock : bool
Return values
mixed —getModifierByProduct()
public
getModifierByProduct(ProductId $id, LanguageId $languageId) : ModifierDTOCollectionInterface
Parameters
- $id : ProductId
- $languageId : LanguageId
Tags
Return values
ModifierDTOCollectionInterface —getModifierBySellingUnit()
public
getModifierBySellingUnit(SellingUnitId $id) : mixed
Parameters
- $id : SellingUnitId
Return values
mixed —hasStock()
protected
hasStock( $item) : bool|null
Parameters
Return values
bool|null —isSelectable()
protected
isSelectable( $item) : bool
Parameters
Return values
bool —setSelectedRecords()
protected
setSelectedRecords(array<string|int, mixed> $selectedAttributes, array<string|int, mixed> $records) : mixed
Parameters
- $selectedAttributes : array<string|int, mixed>
- $records : array<string|int, mixed>