Skip to content

Commit

Permalink
Merge pull request #25 from landofcoder/upgrade-refactor-246p4
Browse files Browse the repository at this point in the history
update Magento2 coding standards
  • Loading branch information
landofcoder authored Apr 5, 2024
2 parents b2e349c + 9fe3633 commit c31c2d1
Show file tree
Hide file tree
Showing 48 changed files with 442 additions and 317 deletions.
70 changes: 55 additions & 15 deletions Api/Data/MessageInterface.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
<?php
/**
* Copyright © All rights reserved.
* See COPYING.txt for license details.
* Landofcoder
*
* NOTICE OF LICENSE
*
* This source file is subject to the Landofcoder.com license that is
* available through the world-wide-web at this URL:
* https://landofcoder.com/terms
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Landofcoder
* @package Lof_MarketplaceGraphQl
* @copyright Copyright (c) 2021 Landofcoder (https://www.landofcoder.com/)
* @license https://landofcoder.com/terms
*/
declare(strict_types=1);

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

/**
* Get message_id
*
* @return int|null
*/
public function getMessageId();

/**
* Set message_id
*
* @param int $messageId
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
*/
public function setMessageId($messageId);

/**
* Get description
*
* @return string|null
*/
public function getDescription();

/**
* Set description
*
* @param string $description
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
*/
public function setDescription($description);

/**
* Get subject
*
* @return string|null
*/
public function getSubject();

/**
* Set subject
*
* @param string $subject
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
*/
public function setSubject($subject);

/**
* Get sender_email
*
* @return string|null
*/
public function getSenderEmail();

/**
* Set sender_email
*
* @param string $senderEmail
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
*/
public function setSenderEmail($senderEmail);

/**
* Get sender_name
*
* @return string|null
*/
public function getSenderName();

/**
* Set sender_name
*
* @param string $senderName
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
*/
public function setSenderName($senderName);

/**
* Get created_at
*
* @return string|null
*/
public function getCreatedAt();

/**
* Set created_at
*
* @param string $createdAt
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
*/
public function setCreatedAt($createdAt);

/**
* Get status
*
* @return int|null
*/
public function getStatus();

/**
* Set status
*
* @param int $status
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
*/
public function setStatus($status);

/**
* Get is_read
*
* @return int|null
*/
public function getIsRead();

/**
* Set is_read
*
* @param int $isRead
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
*/
public function setIsRead($isRead);

/**
* Get sender_id
*
* @return string|null
*/
public function getSenderId();

/**
* Set sender_id
*
* @param string $senderId
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
*/
public function setSenderId($senderId);

/**
* Get owner_id
*
* @return int|null
*/
public function getOwnerId();

/**
* Set owner_id
*
* @param int $ownerId
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
*/
public function setOwnerId($ownerId);

/**
* Get receiver_id
*
* @return int|null
*/
public function getReceiverId();

/**
* Set receiver_id
*
* @param int $receiverId
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
*/
public function setReceiverId($receiverId);

/**
* Get seller_send
*
* @return int|null
*/
public function getSellerSend();

/**
* Set seller_send
*
* @param int $sellerSend
* @return \Lof\MarketplaceGraphQl\Message\Api\Data\MessageInterface
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface
*/
public function setSellerSend($sellerSend);

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

/**
* Set an extension attributes object.
*
* @param \Lof\MarketplaceGraphQl\Api\Data\MessageExtensionInterface $extensionAttributes
* @return $this
*/
public function setExtensionAttributes(
\Lof\MarketplaceGraphQl\Api\Data\MessageExtensionInterface $extensionAttributes
);
}

2 changes: 2 additions & 0 deletions Api/Data/MessageSearchResultsInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,14 @@ interface MessageSearchResultsInterface extends \Magento\Framework\Api\SearchRes
{
/**
* Get seller message list.
*
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageInterface[]
*/
public function getItems();

/**
* Set seller message list.
*
* @param \Lof\MarketplaceGraphQl\Api\Data\MessageInterface[] $items
* @return $this
*/
Expand Down
23 changes: 21 additions & 2 deletions Api/MessageRepositoryInterface.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,22 @@
<?php
/**
* Copyright © Landofcoder All rights reserved.
* See COPYING.txt for license details.
* Landofcoder
*
* NOTICE OF LICENSE
*
* This source file is subject to the Landofcoder.com license that is
* available through the world-wide-web at this URL:
* https://landofcoder.com/terms
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade this extension to newer
* version in the future.
*
* @category Landofcoder
* @package Lof_MarketplaceGraphQl
* @copyright Copyright (c) 2021 Landofcoder (https://www.landofcoder.com/)
* @license https://landofcoder.com/terms
*/
declare(strict_types=1);

Expand All @@ -15,6 +30,8 @@
interface MessageRepositoryInterface
{
/**
* Get list of Seller messages.
*
* @param int $sellerId
* @param SearchCriteriaInterface $searchCriteria
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageSearchResultsInterface
Expand All @@ -25,6 +42,8 @@ public function getListSellerMessages(
);

/**
* Get list messages.
*
* @param int $customerId
* @param SearchCriteriaInterface $searchCriteria
* @return \Lof\MarketplaceGraphQl\Api\Data\MessageSearchResultsInterface
Expand Down
10 changes: 5 additions & 5 deletions Model/Data/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* version in the future.
*
* @category Landofcoder
* @package Lof_MarketPlace
* @package Lof_MarketplaceGraphQl
* @copyright Copyright (c) 2021 Landofcoder (https://www.landofcoder.com/)
* @license https://landofcoder.com/terms
*/
Expand All @@ -30,8 +30,8 @@
class Message extends \Magento\Framework\Api\AbstractExtensibleObject implements MessageInterface
{
/**
* @inheritDoc
*/
* @inheritDoc
*/
public function getMessageId()
{
return $this->_get(self::MESSAGE_ID);
Expand Down Expand Up @@ -222,15 +222,15 @@ public function setSellerSend($sellerSend)
}

/**
* {@inheritdoc}
* @inheritDoc
*/
public function getExtensionAttributes()
{
return $this->_getExtensionAttributes();
}

/**
* {@inheritdoc}
* @inheritDoc
*/
public function setExtensionAttributes(
\Lof\MarketplaceGraphQl\Api\Data\MessageExtensionInterface $extensionAttributes
Expand Down
Loading

0 comments on commit c31c2d1

Please sign in to comment.