![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/cartforge.co/vendor/magento/module-sales/Model/Order/Invoice/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Sales\Model\Order\Invoice; use Magento\Sales\Api\Data\InvoiceCommentCreationInterface; /** * Class InvoiceCommentCreation */ class CommentCreation implements InvoiceCommentCreationInterface { /** * @var string */ private $comment; /** * @var int */ private $isVisibleOnFront; /** * @var \Magento\Sales\Api\Data\InvoiceCommentCreationExtensionInterface */ private $extensionAttributes; /** * Gets the comment for the invoice. * * @return string Comment. */ public function getComment() { return $this->comment; } /** * Sets the comment for the invoice. * * @param string $comment * @return $this */ public function setComment($comment) { $this->comment = $comment; return $this; } /** * Gets the is-visible-on-storefront flag value for the invoice. * * @return int Is-visible-on-storefront flag value. */ public function getIsVisibleOnFront() { return $this->isVisibleOnFront; } /** * Sets the is-visible-on-storefront flag value for the invoice. * * @param int $isVisibleOnFront * @return $this */ public function setIsVisibleOnFront($isVisibleOnFront) { $this->isVisibleOnFront = $isVisibleOnFront; return $this; } /** * Retrieve existing extension attributes object or create a new one. * * @return \Magento\Sales\Api\Data\InvoiceCommentCreationExtensionInterface|null */ public function getExtensionAttributes() { return $this->extensionAttributes; } /** * Set an extension attributes object. * * @param \Magento\Sales\Api\Data\InvoiceCommentCreationExtensionInterface $extensionAttributes * @return $this */ public function setExtensionAttributes( \Magento\Sales\Api\Data\InvoiceCommentCreationExtensionInterface $extensionAttributes ) { $this->extensionAttributes = $extensionAttributes; return $this; } }