Log in
Interface

EntityInterface

Magento\Sales\Model\EntityInterface

What it does

This interface defines a contract for sales entities (orders, invoices, shipments, credit memos) that have increment IDs - the human-readable identifiers displayed to customers.

Developers implement this interface when creating custom sales entities or use it for type-hinting when working with any sales entity that needs to expose its increment ID.

Public Methods

  • getIncrementId()