/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Pricing/Amount/AmountInterface.php
68 строк
1 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\Amount; /** * Amount interface, the amount values are in display currency * * @api * @since 100.0.2 */ interface AmountInterface { /** * Return full amount value * * @param null|string|array $exclude * @return float */ public function getValue($exclude = null); /** * Return full amount value in string format * * @return string */ public function __toString(); /** * Return base amount part value * * @return float */ public function getBaseAmount(); /** * Return adjustment amount part value by adjustment code * * @param string $adjustmentCode * @return float */ public function getAdjustmentAmount($adjustmentCode); /** * Return sum amount of all applied adjustments * * @return float */ public function getTotalAdjustmentAmount(); /** * Return all applied adjustments as array * * @return float[] */ public function getAdjustmentAmounts(); /** * Check if adjustment is contained in amount object * * @param string $adjustmentCode * @return boolean */ public function hasAdjustment($adjustmentCode); }