Model
HistoryRepository
Magento\Sales\Model\Order\Status\HistoryRepository
What it does
This repository class manages CRUD operations for order status history records in Magento 2.
Developers use this class to retrieve, save, delete, or search order status history entries (like status changes, comments, and notifications) programmatically.
It provides a consistent API layer for managing the historical record of status changes and comments associated with orders.
Public Methods
- getList()
- get()
- delete()
- save()