Skip to content

Commit c2653d0

Browse files
32370 add descriptions
1 parent 1058095 commit c2653d0

File tree

1 file changed

+6
-3
lines changed
  • app/code/Magento/SalesGraphQl/Model/Resolver/CustomerOrders/Query

1 file changed

+6
-3
lines changed

app/code/Magento/SalesGraphQl/Model/Resolver/CustomerOrders/Query/OrderSort.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@
1313
use Magento\GiftRegistryGraphQl\Mapper\GiftRegistryDataMapper;
1414

1515
/**
16-
*
16+
* Order sort allows to sort the collection by the specified field and direction
1717
*/
1818
class OrderSort
1919
{
20+
/**
21+
* The sortable field mapper name
22+
*/
2023
private const SORTABLE_FIELD_MAP = 'CustomerOrderSortableField';
2124

2225
/**
@@ -42,7 +45,7 @@ public function __construct(
4245
}
4346

4447
/**
45-
*
48+
* Create an array of sort orders for sorting customer orders by the specified field and direction
4649
*
4750
* @param array $args
4851
* @return SortOrder[]
@@ -58,7 +61,7 @@ public function createSortOrders(array $args): array
5861
}
5962

6063
/**
61-
*
64+
* Get sort field
6265
*
6366
* @param string $field
6467
* @return string

0 commit comments

Comments
 (0)