123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\GiftMessage\Api\Data;
- /**
- * Interface MessageInterface
- * @api
- * @since 100.0.2
- */
- interface MessageInterface extends \Magento\Framework\Api\ExtensibleDataInterface
- {
- /**#@+
- * Constants for keys of data array. Identical to the name of the getter in snake case
- */
- const GIFT_MESSAGE_ID = 'gift_message_id';
- const CUSTOMER_ID = 'customer_id';
- const SENDER = 'sender';
- const RECIPIENT = 'recipient';
- const MESSAGE = 'message';
- /**#@-*/
- /**
- * Return the gift message ID.
- *
- * @return int|null Gift message ID. Otherwise, null.
- */
- public function getGiftMessageId();
- /**
- * Set the gift message ID.
- *
- * @param int|null $id
- * @return $this
- */
- public function setGiftMessageId($id);
- /**
- * Return the customer ID.
- *
- * @return int|null Customer ID. Otherwise, null.
- */
- public function getCustomerId();
- /**
- * Set the customer ID.
- *
- * @param int|null $id
- * @return $this
- */
- public function setCustomerId($id);
- /**
- * Return the sender name.
- *
- * @return string Sender name.
- */
- public function getSender();
- /**
- * Set the sender name.
- *
- * @param string $sender
- * @return $this
- */
- public function setSender($sender);
- /**
- * Return the recipient name.
- *
- * @return string Recipient name.
- */
- public function getRecipient();
- /**
- * Get the recipient name.
- *
- * @param string $recipient
- * @return $this
- */
- public function setRecipient($recipient);
- /**
- * Return the message text.
- *
- * @return string Message text.
- */
- public function getMessage();
- /**
- * Set the message text.
- *
- * @param string $message
- * @return $this
- */
- public function setMessage($message);
- /**
- * Retrieve existing extension attributes object or create a new one.
- *
- * @return \Magento\GiftMessage\Api\Data\MessageExtensionInterface|null
- */
- public function getExtensionAttributes();
- /**
- * Set an extension attributes object.
- *
- * @param \Magento\GiftMessage\Api\Data\MessageExtensionInterface $extensionAttributes
- * @return $this
- */
- public function setExtensionAttributes(
- \Magento\GiftMessage\Api\Data\MessageExtensionInterface $extensionAttributes
- );
- }
|