Log in
Interface

LineItemInterface

Magento\Sales\Api\Data\LineItemInterface

What it does

This interface defines the base contract for line items in Magento 2 sales entities like invoices, shipments, and credit memos.

Developers use this interface when working with order-related documents that reference individual order items and their quantities.

It ensures consistent access to the order item ID and quantity across different sales document types.

Public Methods

  • getOrderItemId()
  • setOrderItemId()
  • getQty()
  • setQty()