History
Magento\Sales\Model\Order\Status\History
What it does
This class manages order status history records, which track changes to an order's status along with comments and timestamps.
Developers use it to add comments to orders, log status changes, and control whether customers are notified about these updates.
It's commonly used when programmatically updating order statuses or adding administrative notes that may be visible to customers on the frontend.
Public Methods
- setOrder()
- setIsCustomerNotified()
- isCustomerNotificationNotApplicable()
- getOrder()
- getStatusLabel()
- getStore()
- beforeSave()
- getComment()
- getCreatedAt()
- setCreatedAt()
- getEntityId()
- getEntityName()
- getIsCustomerNotified()
- getIsVisibleOnFront()
- getParentId()
- getStatus()
- setParentId()
- setIsVisibleOnFront()
- setComment()
- setStatus()
- setEntityName()
- getExtensionAttributes()
- setExtensionAttributes()