Model
SalesOrderStatusChangeHistory
Magento\Sales\Model\ResourceModel\SalesOrderStatusChangeHistory
What it does
This resource model manages the sales order status change history by tracking when order statuses change over time.
Developers use this class to retrieve the most recent status change for an order or to record a new status change when an order's status is updated.
It provides a historical audit trail of all status transitions for sales orders.
Public Methods
- getLatestStatus()
- insert()