Log in
Interface

InvoiceItemResourceInterface

Magento\Sales\Model\Spi\InvoiceItemResourceInterface

What it does

This interface defines the contract for persisting invoice item data to the database in Magento 2.

Developers use this when implementing custom resource models for invoice items or when they need to save, load, or delete individual invoice line items programmatically.

It's part of the Service Provider Interface (SPI) layer, allowing for custom implementations of invoice item persistence logic.

Public Methods

  • save()
  • load()
  • delete()