1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?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
);
}