ModifierHtmlGenerator
in package
Class ModifierHtmlGenerator
Table of Contents
- $selectedQuantity : QuantityInterface
- $sellingUnitStock : SellingUnitStockInterface
- $values : array<string|int, AttributeNameAndValueDTO>
- $isAttributeStockCheckActive : bool
- $outOfStockMarkings : OutOfStockMarkings
- __construct() : mixed
- ModifierHtmlGenerator constructor.
- addDto() : void
- toHtml() : string
- modifierHasAnInsufficientQuantity() : bool
- quantityHasInsufficientQuantityException() : bool
Properties
$selectedQuantity
protected
QuantityInterface
$selectedQuantity
$sellingUnitStock
protected
SellingUnitStockInterface
$sellingUnitStock
$values
protected
array<string|int, AttributeNameAndValueDTO>
$values
= []
$isAttributeStockCheckActive
private
bool
$isAttributeStockCheckActive
$outOfStockMarkings
private
OutOfStockMarkings
$outOfStockMarkings
Methods
__construct()
ModifierHtmlGenerator constructor.
public
__construct(array<string|int, AttributeNameAndValueDTO> $dtos, QuantityInterface $selectedQuantity, SellingUnitStockInterface $sellingUnitStock, OutOfStockMarkings $outOfStockMarkings, bool $isAttributeStockCheckActive) : mixed
Parameters
- $dtos : array<string|int, AttributeNameAndValueDTO>
- $selectedQuantity : QuantityInterface
- $sellingUnitStock : SellingUnitStockInterface
- $outOfStockMarkings : OutOfStockMarkings
- $isAttributeStockCheckActive : bool
Return values
mixed —addDto()
public
addDto(AttributeNameAndValueDTO $dto) : void
Parameters
- $dto : AttributeNameAndValueDTO
Return values
void —toHtml()
public
toHtml() : string
Return values
string —modifierHasAnInsufficientQuantity()
protected
modifierHasAnInsufficientQuantity(ModifierIdentifierInterface $identifier) : bool
Parameters
- $identifier : ModifierIdentifierInterface
Return values
bool —quantityHasInsufficientQuantityException()
protected
quantityHasInsufficientQuantityException() : bool