Log in
Model

Comment

Magento\Sales\Model\Order\Shipment\Comment

What it does

This model class represents a comment or note attached to an order shipment in Magento 2.

Developers use it to add internal notes or customer-visible messages to shipments, track when comments were created, and control whether customers should be notified or see the comment on the frontend.

It provides getters and setters for comment text, timestamps, visibility flags, and maintains a relationship with its parent shipment.

Public Methods

  • setShipment()
  • getShipment()
  • getStore()
  • getComment()
  • getCreatedAt()
  • setCreatedAt()
  • getIsCustomerNotified()
  • getIsVisibleOnFront()
  • getParentId()
  • setParentId()
  • setIsCustomerNotified()
  • setIsVisibleOnFront()
  • setComment()
  • getExtensionAttributes()
  • setExtensionAttributes()