LineItemInterface.php 934 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Api\Data;
  7. /**
  8. * Base line item interface for order entities
  9. *
  10. * Interface LineItemInterface
  11. * @api
  12. * @since 100.1.2
  13. */
  14. interface LineItemInterface
  15. {
  16. /**
  17. * Gets the order item ID for the item.
  18. *
  19. * @return int Order item ID.
  20. * @since 100.1.2
  21. */
  22. public function getOrderItemId();
  23. /**
  24. * Sets the order item ID for the item.
  25. *
  26. * @param int $id
  27. * @return $this
  28. * @since 100.1.2
  29. */
  30. public function setOrderItemId($id);
  31. /**
  32. * Gets the quantity for the item.
  33. *
  34. * @return float Quantity.
  35. * @since 100.1.2
  36. */
  37. public function getQty();
  38. /**
  39. * Sets the quantity for the item.
  40. *
  41. * @param float $qty
  42. * @return $this
  43. * @since 100.1.2
  44. */
  45. public function setQty($qty);
  46. }