Skip to content

Commit accac0b

Browse files
committed
Added methods descriptions to CategoryTree
1 parent 101716c commit accac0b

File tree

1 file changed

+7
-0
lines changed
  • app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider

1 file changed

+7
-0
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/CategoryTree.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,12 @@ public function __construct(
8383
}
8484

8585
/**
86+
* Returns categories tree starting from parent $rootCategoryId
87+
*
8688
* @param ResolveInfo $resolveInfo
8789
* @param int $rootCategoryId
8890
* @return array
91+
* @throws \Exception
8992
*/
9093
public function getTree(ResolveInfo $resolveInfo, int $rootCategoryId) : array
9194
{
@@ -107,6 +110,8 @@ public function getTree(ResolveInfo $resolveInfo, int $rootCategoryId) : array
107110
}
108111

109112
/**
113+
* Iterates through category tree
114+
*
110115
* @param \Iterator $iterator
111116
* @return array
112117
*/
@@ -129,6 +134,8 @@ private function processTree(\Iterator $iterator) : array
129134
}
130135

131136
/**
137+
* Joins EAV attributes recursively
138+
*
132139
* @param Collection $collection
133140
* @param FieldNode $fieldNode
134141
* @return void

0 commit comments

Comments
 (0)