![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/vendor/magento/framework/Pricing/Amount/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ 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); }