Skip to content

Commit

Permalink
Added methods descriptions to CategoryTree
Browse files Browse the repository at this point in the history
  • Loading branch information
rogyar committed Sep 27, 2018
1 parent 101716c commit accac0b
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,12 @@ public function __construct(
}

/**
* Returns categories tree starting from parent $rootCategoryId
*
* @param ResolveInfo $resolveInfo
* @param int $rootCategoryId
* @return array
* @throws \Exception
*/
public function getTree(ResolveInfo $resolveInfo, int $rootCategoryId) : array
{
Expand All @@ -107,6 +110,8 @@ public function getTree(ResolveInfo $resolveInfo, int $rootCategoryId) : array
}

/**
* Iterates through category tree
*
* @param \Iterator $iterator
* @return array
*/
Expand All @@ -129,6 +134,8 @@ private function processTree(\Iterator $iterator) : array
}

/**
* Joins EAV attributes recursively
*
* @param Collection $collection
* @param FieldNode $fieldNode
* @return void
Expand Down

0 comments on commit accac0b

Please sign in to comment.