Settings
in package
Table of Contents
- $logger : LoggerInterface
- $maximumListPriceDiscountPercentage : float|null
- $minimumMarginPercentage : float|null
- $priceRule : PriceRuleInterface
- $roundPrecision : float
- $roundUp : bool
- fromArray() : self
- getMaximumListPriceDiscountPercentage() : float|null
- getMinimumMarginPercentage() : float|null
- getNewPrice() : float|null
- getPriceRule() : PriceRuleInterface
- getRoundPrecision() : float
- getRoundUp() : bool
- setLogger() : void
- __construct() : mixed
Properties
$logger
private
LoggerInterface
$logger
$maximumListPriceDiscountPercentage
private
float|null
$maximumListPriceDiscountPercentage
= null
$minimumMarginPercentage
private
float|null
$minimumMarginPercentage
= null
$priceRule
private
PriceRuleInterface
$priceRule
$roundPrecision
private
float
$roundPrecision
= 0.01
$roundUp
private
bool
$roundUp
= false
Methods
fromArray()
public
static fromArray(array<string|int, mixed> $data) : self
Parameters
- $data : array<string|int, mixed>
Return values
self —getMaximumListPriceDiscountPercentage()
public
getMaximumListPriceDiscountPercentage() : float|null
Return values
float|null —getMinimumMarginPercentage()
public
getMinimumMarginPercentage() : float|null
Return values
float|null —getNewPrice()
public
getNewPrice(ProductInterface $product, Product $pricemotionProduct) : float|null
Parameters
- $product : ProductInterface
- $pricemotionProduct : Product
Return values
float|null —getPriceRule()
public
getPriceRule() : PriceRuleInterface
Return values
PriceRuleInterface —getRoundPrecision()
public
getRoundPrecision() : float
Return values
float —getRoundUp()
public
getRoundUp() : bool
Return values
bool —setLogger()
public
setLogger(LoggerInterface $logger) : void
Parameters
- $logger : LoggerInterface
Return values
void —__construct()
private
__construct() : mixed