Model
Comment
Magento\Sales\Model\Order\Invoice\Comment
What it does
This class represents a comment attached to an invoice in Magento 2.
Developers use it to add notes or communication history to invoices, such as internal notes or customer-facing messages.
It manages comment properties like visibility, customer notification status, and timestamps, and maintains the relationship between comments and their parent invoice.
Public Methods
- setInvoice()
- getInvoice()
- getStore()
- getComment()
- getCreatedAt()
- setCreatedAt()
- getIsCustomerNotified()
- getIsVisibleOnFront()
- getParentId()
- setParentId()
- setIsCustomerNotified()
- setIsVisibleOnFront()
- setComment()
- getExtensionAttributes()
- setExtensionAttributes()