ListStatus
Magento\Sales\Model\Status\ListStatus
What it does
This class manages a collection of status information items for sales entities in Magento 2.
Developers use it to track and manipulate status messages from different modules, allowing multiple systems to add, retrieve, or remove status information with associated metadata like origin, code, and custom data objects.
It's particularly useful when an object needs to maintain a list of status updates from various sources throughout its lifecycle.
Public Methods
- addItem()
- getItems()
- removeItemsByParams()
- removeItems()
- clear()