49 if ($this->adjustmentInstances ===
null) {
64 if ($this->adjustmentInstances ===
null) {
68 if (!isset($this->adjustmentInstances[$adjustmentCode])) {
69 throw new \InvalidArgumentException(sprintf(
'Price adjustment "%s" is not found', $adjustmentCode));
71 return $this->adjustmentInstances[$adjustmentCode];
82 $instances[
$code] = $this->adjustmentPool->getAdjustmentByCode(
$code);
85 uasort($instances, [$this,
'sortAdjustments']);
fetchAdjustments($adjustments)
getItemByCode($adjustmentCode)
sortAdjustments(AdjustmentInterface $firstAdjustment, AdjustmentInterface $secondAdjustment)
__construct(Pool $adjustmentPool, array $adjustments)