@@ -60,8 +60,12 @@ public function __construct(
60
60
}
61
61
62
62
/**
63
+ * Get root node by category.
64
+ *
63
65
* @param \Magento\Catalog\Model\Category|null $category
64
66
* @return Node|null
67
+ * @throws \Magento\Framework\Exception\LocalizedException
68
+ * @throws \Magento\Framework\Exception\NoSuchEntityException
65
69
*/
66
70
public function getRootNode ($ category = null )
67
71
{
@@ -80,8 +84,12 @@ public function getRootNode($category = null)
80
84
}
81
85
82
86
/**
87
+ * Get node by category.
88
+ *
83
89
* @param \Magento\Catalog\Model\Category $category
84
90
* @return Node
91
+ * @throws \Magento\Framework\Exception\LocalizedException
92
+ * @throws \Magento\Framework\Exception\NoSuchEntityException
85
93
*/
86
94
protected function getNode (\Magento \Catalog \Model \Category $ category )
87
95
{
@@ -95,7 +103,11 @@ protected function getNode(\Magento\Catalog\Model\Category $category)
95
103
}
96
104
97
105
/**
106
+ * Prepare category collection.
107
+ *
98
108
* @return void
109
+ * @throws \Magento\Framework\Exception\LocalizedException
110
+ * @throws \Magento\Framework\Exception\NoSuchEntityException
99
111
*/
100
112
protected function prepareCollection ()
101
113
{
@@ -114,6 +126,8 @@ protected function prepareCollection()
114
126
}
115
127
116
128
/**
129
+ * Get tree by node.
130
+ *
117
131
* @param \Magento\Framework\Data\Tree\Node $node
118
132
* @param int $depth
119
133
* @param int $currentLevel
@@ -137,6 +151,8 @@ public function getTree($node, $depth = null, $currentLevel = 0)
137
151
}
138
152
139
153
/**
154
+ * Get node children.
155
+ *
140
156
* @param \Magento\Framework\Data\Tree\Node $node
141
157
* @param int $depth
142
158
* @param int $currentLevel
0 commit comments