Interface
EntityInterface
Magento\Sales\Api\Data\EntityInterface
What it does
This interface defines the base contract for sales entities in Magento 2, providing standard methods to get and set the entity ID and creation timestamp.
Developers use this interface when working with sales-related entities like invoices, orders, shipments, or credit memos to ensure consistent access to common entity properties across different sales objects.
Public Methods
- getCreatedAt()
- setCreatedAt()
- getEntityId()
- setEntityId()