/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Pricing/Adjustment/AdjustmentInterface.php
75 строк
2 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2014 Adobe * All Rights Reserved. */ namespace Magento\Framework\Pricing\Adjustment; use Magento\Framework\Pricing\SaleableInterface; /** * Interface AdjustmentInterface * * @api * @since 100.0.2 */ interface AdjustmentInterface { /** * Get adjustment code * (as declared in DI configuration) * * @return string */ public function getAdjustmentCode(); /** * Define if adjustment is included in base price * * @return bool */ public function isIncludedInBasePrice(); /** * Define if adjustment is included in display price * * @return bool */ public function isIncludedInDisplayPrice(); /** * Extract adjustment amount from the given amount value * * @param float $amount * @param SaleableInterface $saleableItem * @param null|array $context * @return float */ public function extractAdjustment($amount, SaleableInterface $saleableItem, $context = []); /** * Apply adjustment amount and return result value * * @param float $amount * @param SaleableInterface $saleableItem * @param null|array $context * @return float */ public function applyAdjustment($amount, SaleableInterface $saleableItem, $context = []); /** * Check if adjustment should be excluded from calculations along with the given adjustment * * @param string $adjustmentCode * @return bool */ public function isExcludedWith($adjustmentCode); /** * Return sort order position * * @return int */ public function getSortOrder(); }