CalculatorInterface.php 647 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Pricing\Adjustment;
  7. use Magento\Framework\Pricing\SaleableInterface;
  8. /**
  9. * Calculator interface
  10. *
  11. * @api
  12. * @since 100.0.2
  13. */
  14. interface CalculatorInterface
  15. {
  16. /**
  17. * @param float|string $amount
  18. * @param SaleableInterface $saleableItem
  19. * @param null|bool|string|array $exclude
  20. * @param null|array $context
  21. * @return \Magento\Framework\Pricing\Amount\AmountInterface
  22. */
  23. public function getAmount($amount, SaleableInterface $saleableItem, $exclude = null, $context = []);
  24. }