Model
CommentCreation
Magento\Sales\Model\Order\Creditmemo\CommentCreation
What it does
This class is a data transfer object (DTO) used when creating comments for credit memos in Magento 2.
Developers use this class to set comment text and visibility preferences when programmatically adding comments to credit memos through the API.
It implements the CreditmemoCommentCreationInterface and provides getter/setter methods for comment data and extension attributes.
Public Methods
- getExtensionAttributes()
- setExtensionAttributes()
- getComment()
- setComment()
- getIsVisibleOnFront()
- setIsVisibleOnFront()