Log in
Model

CommentCreation

Magento\Sales\Model\Order\Shipment\CommentCreation

What it does

This class serves as a data transfer object (DTO) for creating comments on shipments in Magento 2.

Developers use this class when they need to programmatically add comments to shipments via API or service contracts, allowing them to set comment text and control whether the comment is visible on the storefront to customers.

Public Methods

  • getExtensionAttributes()
  • setExtensionAttributes()
  • getComment()
  • setComment()
  • getIsVisibleOnFront()
  • setIsVisibleOnFront()