Interface
CommentInterface
Magento\Sales\Api\Data\CommentInterface
What it does
This interface defines the contract for comment objects in Magento 2 Sales module.
Developers use it when working with comments attached to sales entities like orders, invoices, shipments, or credit memos.
It provides methods to get/set the comment text and control whether the comment is visible to customers on the storefront.
Public Methods
- getComment()
- setComment()
- getIsVisibleOnFront()
- setIsVisibleOnFront()