Skip to content

Commit c31c2d1

Browse files
authored
Merge pull request #25 from landofcoder/upgrade-refactor-246p4
update Magento2 coding standards
2 parents b2e349c + 9fe3633 commit c31c2d1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+442
-317
lines changed

Api/Data/MessageInterface.php

Lines changed: 55 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
<?php
22
/**
3-
* Copyright © All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Landofcoder
4+
*
5+
* NOTICE OF LICENSE
6+
*
7+
* This source file is subject to the Landofcoder.com license that is
8+
* available through the world-wide-web at this URL:
9+
* https://landofcoder.com/terms
10+
*
11+
* DISCLAIMER
12+
*
13+
* Do not edit or add to this file if you wish to upgrade this extension to newer
14+
* version in the future.
15+
*
16+
* @category Landofcoder
17+
* @package Lof_MarketplaceGraphQl
18+
* @copyright Copyright (c) 2021 Landofcoder (https://www.landofcoder.com/)
19+
* @license https://landofcoder.com/terms
520
*/
621
declare(strict_types=1);
722

@@ -25,173 +40,198 @@ interface MessageInterface extends \Magento\Framework\Api\ExtensibleDataInterfac
2540

2641
/**
2742
* Get message_id
43+
*
2844
* @return int|null
2945
*/
3046
public function getMessageId();
3147

3248
/**
3349
* Set message_id
50+
*
3451
* @param int $messageId
35-
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
52+
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
3653
*/
3754
public function setMessageId($messageId);
3855

3956
/**
4057
* Get description
58+
*
4159
* @return string|null
4260
*/
4361
public function getDescription();
4462

4563
/**
4664
* Set description
65+
*
4766
* @param string $description
48-
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
67+
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
4968
*/
5069
public function setDescription($description);
5170

5271
/**
5372
* Get subject
73+
*
5474
* @return string|null
5575
*/
5676
public function getSubject();
5777

5878
/**
5979
* Set subject
80+
*
6081
* @param string $subject
61-
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
82+
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
6283
*/
6384
public function setSubject($subject);
6485

6586
/**
6687
* Get sender_email
88+
*
6789
* @return string|null
6890
*/
6991
public function getSenderEmail();
7092

7193
/**
7294
* Set sender_email
95+
*
7396
* @param string $senderEmail
74-
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
97+
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
7598
*/
7699
public function setSenderEmail($senderEmail);
77100

78101
/**
79102
* Get sender_name
103+
*
80104
* @return string|null
81105
*/
82106
public function getSenderName();
83107

84108
/**
85109
* Set sender_name
110+
*
86111
* @param string $senderName
87-
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
112+
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
88113
*/
89114
public function setSenderName($senderName);
90115

91116
/**
92117
* Get created_at
118+
*
93119
* @return string|null
94120
*/
95121
public function getCreatedAt();
96122

97123
/**
98124
* Set created_at
125+
*
99126
* @param string $createdAt
100-
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
127+
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
101128
*/
102129
public function setCreatedAt($createdAt);
103130

104131
/**
105132
* Get status
133+
*
106134
* @return int|null
107135
*/
108136
public function getStatus();
109137

110138
/**
111139
* Set status
140+
*
112141
* @param int $status
113-
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
142+
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
114143
*/
115144
public function setStatus($status);
116145

117146
/**
118147
* Get is_read
148+
*
119149
* @return int|null
120150
*/
121151
public function getIsRead();
122152

123153
/**
124154
* Set is_read
155+
*
125156
* @param int $isRead
126-
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
157+
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
127158
*/
128159
public function setIsRead($isRead);
129160

130161
/**
131162
* Get sender_id
163+
*
132164
* @return string|null
133165
*/
134166
public function getSenderId();
135167

136168
/**
137169
* Set sender_id
170+
*
138171
* @param string $senderId
139-
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
172+
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
140173
*/
141174
public function setSenderId($senderId);
142175

143176
/**
144177
* Get owner_id
178+
*
145179
* @return int|null
146180
*/
147181
public function getOwnerId();
148182

149183
/**
150184
* Set owner_id
185+
*
151186
* @param int $ownerId
152-
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
187+
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
153188
*/
154189
public function setOwnerId($ownerId);
155190

156191
/**
157192
* Get receiver_id
193+
*
158194
* @return int|null
159195
*/
160196
public function getReceiverId();
161197

162198
/**
163199
* Set receiver_id
200+
*
164201
* @param int $receiverId
165-
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
202+
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
166203
*/
167204
public function setReceiverId($receiverId);
168205

169206
/**
170207
* Get seller_send
208+
*
171209
* @return int|null
172210
*/
173211
public function getSellerSend();
174212

175213
/**
176214
* Set seller_send
215+
*
177216
* @param int $sellerSend
178-
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
217+
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
179218
*/
180219
public function setSellerSend($sellerSend);
181220

182221
/**
183222
* Retrieve existing extension attributes object or create a new one.
223+
*
184224
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageExtensionInterface|\Magento\Framework\Api\ExtensionAttributesInterface|null
185225
*/
186226
public function getExtensionAttributes();
187227

188228
/**
189229
* Set an extension attributes object.
230+
*
190231
* @param \Lof\MarketplaceGraphQl\Api\Data\MessageExtensionInterface $extensionAttributes
191232
* @return $this
192233
*/
193234
public function setExtensionAttributes(
194235
\Lof\MarketplaceGraphQl\Api\Data\MessageExtensionInterface $extensionAttributes
195236
);
196237
}
197-

Api/Data/MessageSearchResultsInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,14 @@ interface MessageSearchResultsInterface extends \Magento\Framework\Api\SearchRes
2525
{
2626
/**
2727
* Get seller message list.
28+
*
2829
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface[]
2930
*/
3031
public function getItems();
3132

3233
/**
3334
* Set seller message list.
35+
*
3436
* @param \Lof\MarketplaceGraphQl\Api\Data\MessageInterface[] $items
3537
* @return $this
3638
*/

Api/MessageRepositoryInterface.php

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
<?php
22
/**
3-
* Copyright © Landofcoder All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Landofcoder
4+
*
5+
* NOTICE OF LICENSE
6+
*
7+
* This source file is subject to the Landofcoder.com license that is
8+
* available through the world-wide-web at this URL:
9+
* https://landofcoder.com/terms
10+
*
11+
* DISCLAIMER
12+
*
13+
* Do not edit or add to this file if you wish to upgrade this extension to newer
14+
* version in the future.
15+
*
16+
* @category Landofcoder
17+
* @package Lof_MarketplaceGraphQl
18+
* @copyright Copyright (c) 2021 Landofcoder (https://www.landofcoder.com/)
19+
* @license https://landofcoder.com/terms
520
*/
621
declare(strict_types=1);
722

@@ -15,6 +30,8 @@
1530
interface MessageRepositoryInterface
1631
{
1732
/**
33+
* Get list of Seller messages.
34+
*
1835
* @param int $sellerId
1936
* @param SearchCriteriaInterface $searchCriteria
2037
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageSearchResultsInterface
@@ -25,6 +42,8 @@ public function getListSellerMessages(
2542
);
2643

2744
/**
45+
* Get list messages.
46+
*
2847
* @param int $customerId
2948
* @param SearchCriteriaInterface $searchCriteria
3049
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageSearchResultsInterface

Model/Data/Message.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* version in the future.
1515
*
1616
* @category Landofcoder
17-
* @package Lof_MarketPlace
17+
* @package Lof_MarketplaceGraphQl
1818
* @copyright Copyright (c) 2021 Landofcoder (https://www.landofcoder.com/)
1919
* @license https://landofcoder.com/terms
2020
*/
@@ -30,8 +30,8 @@
3030
class Message extends \Magento\Framework\Api\AbstractExtensibleObject implements MessageInterface
3131
{
3232
/**
33-
* @inheritDoc
34-
*/
33+
* @inheritDoc
34+
*/
3535
public function getMessageId()
3636
{
3737
return $this->_get(self::MESSAGE_ID);
@@ -222,15 +222,15 @@ public function setSellerSend($sellerSend)
222222
}
223223

224224
/**
225-
* {@inheritdoc}
225+
* @inheritDoc
226226
*/
227227
public function getExtensionAttributes()
228228
{
229229
return $this->_getExtensionAttributes();
230230
}
231231

232232
/**
233-
* {@inheritdoc}
233+
* @inheritDoc
234234
*/
235235
public function setExtensionAttributes(
236236
\Lof\MarketplaceGraphQl\Api\Data\MessageExtensionInterface $extensionAttributes

0 commit comments

Comments
 (0)