History
Magento\Sales\Model\Order\Status\History
What it does
This class manages order status history records in Magento 2, tracking comments, status changes, and customer notifications for orders.
Developers use it when adding status history comments to orders, managing order status transitions, or displaying order activity logs to customers and administrators.
It provides methods to set and retrieve status comments, notification flags, and visibility settings for order history entries.
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()