Interface
LineItemInterface
Magento\Sales\Api\Data\LineItemInterface
What it does
This interface defines the contract for line items in Magento 2 sales entities like invoices, shipments, and credit memos.
It provides methods to get and set the associated order item ID and quantity for each line item.
Developers use this when creating custom implementations of sales documents or extending line item functionality.
Public Methods
- getOrderItemId()
- setOrderItemId()
- getQty()
- setQty()