Log in
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, retrieve, and manage administrative notes or customer-facing comments on invoices, such as tracking notes about why an invoice was created or messages visible to customers.

It handles properties like comment text, visibility flags, customer notifications, 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()