1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- <?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;
- }
- }
|