class ChangedPriceEventContainer

Class ChangedPriceEventContainer

Methods

__construct(ContainerInterface $container)

No description

mixed
getUser()

No description

getProductById(Product $product)

Find product for provided id

sendProductPriceChangedMail(array $params)

Send email notification to user

findAttrValue(int $attrValId)

Find product attribute value for provided id

dispatchUpdateOldPriceForProduct(Product|int $product, mixed $attrVal, float $oldPrice, Pricelist|null $priceList = null)

Dispatch event for setting old price on watchlist items

Details

at line 32
__construct(ContainerInterface $container)

Parameters

ContainerInterface $container

at line 41
mixed getUser()

Return Value

mixed Can be a UserInterface instance, an object implementing a __toString method, or the username as a regular string

at line 56
Product getProductById(Product $product)

Find product for provided id

Parameters

Product $product

Return Value

Product

Exceptions

NoResultException
NonUniqueResultException

at line 66
sendProductPriceChangedMail(array $params)

Send email notification to user

Parameters

array $params

at line 87
ProductAttributeValues|null findAttrValue(int $attrValId)

Find product attribute value for provided id

Parameters

int $attrValId

Return Value

ProductAttributeValues|null

at line 100
dispatchUpdateOldPriceForProduct(Product|int $product, mixed $attrVal, float $oldPrice, Pricelist|null $priceList = null)

Dispatch event for setting old price on watchlist items

Parameters

Product|int $product
mixed $attrVal
float $oldPrice
Pricelist|null $priceList