SaleableInterface.php 780 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Pricing;
  7. /**
  8. * Interface SaleableInterface
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. interface SaleableInterface
  14. {
  15. /**
  16. * Returns PriceInfo container of saleable item
  17. *
  18. * @return \Magento\Framework\Pricing\PriceInfoInterface
  19. */
  20. public function getPriceInfo();
  21. /**
  22. * Returns type identifier of saleable item
  23. *
  24. * @return array|string
  25. */
  26. public function getTypeId();
  27. /**
  28. * Returns identifier of saleable item
  29. *
  30. * @return int
  31. */
  32. public function getId();
  33. /**
  34. * Returns quantity of saleable item
  35. *
  36. * @return float
  37. */
  38. public function getQty();
  39. }