@@ -300,7 +300,7 @@ protected function _construct()
300300 }
301301
302302 /**
303- * { @inheritdoc}
303+ * @inheritdoc
304304 */
305305 protected function getCustomAttributesCodes ()
306306 {
@@ -312,6 +312,8 @@ protected function getCustomAttributesCodes()
312312 }
313313
314314 /**
315+ * Returns model resource
316+ *
315317 * @throws \Magento\Framework\Exception\LocalizedException
316318 * @return \Magento\Catalog\Model\ResourceModel\Category
317319 * @deprecated because resource models should be used directly
@@ -648,6 +650,8 @@ public function formatUrlKey($str)
648650 }
649651
650652 /**
653+ * Returns image url
654+ *
651655 * @param string $attributeCode
652656 * @return bool|string
653657 * @throws \Magento\Framework\Exception\LocalizedException
@@ -708,7 +712,7 @@ public function getParentId()
708712 return $ parentId ;
709713 }
710714 $ parentIds = $ this ->getParentIds ();
711- return intval ( array_pop ($ parentIds) );
715+ return ( int ) array_pop ($ parentIds );
712716 }
713717
714718 /**
@@ -796,6 +800,7 @@ public function getChildren($recursive = false, $isActive = true, $sortByPositio
796800
797801 /**
798802 * Retrieve Stores where isset category Path
803+ *
799804 * Return comma separated string
800805 *
801806 * @return string
@@ -826,6 +831,7 @@ public function checkId($id)
826831
827832 /**
828833 * Get array categories ids which are part of category path
834+ *
829835 * Result array contain id of current category because it is part of the path
830836 *
831837 * @return array
@@ -1029,7 +1035,8 @@ public function getAvailableSortBy()
10291035
10301036 /**
10311037 * Retrieve Available Product Listing Sort By
1032- * code as key, value - name
1038+ *
1039+ * Code as key, value - name
10331040 *
10341041 * @return array
10351042 */
@@ -1150,6 +1157,8 @@ public function getIdentities()
11501157 }
11511158
11521159 /**
1160+ * Returns path
1161+ *
11531162 * @codeCoverageIgnoreStart
11541163 * @return string|null
11551164 */
@@ -1159,6 +1168,8 @@ public function getPath()
11591168 }
11601169
11611170 /**
1171+ * Returns position
1172+ *
11621173 * @return int|null
11631174 */
11641175 public function getPosition ()
@@ -1167,6 +1178,8 @@ public function getPosition()
11671178 }
11681179
11691180 /**
1181+ * Returns children count
1182+ *
11701183 * @return int
11711184 */
11721185 public function getChildrenCount ()
@@ -1175,6 +1188,8 @@ public function getChildrenCount()
11751188 }
11761189
11771190 /**
1191+ * Returns created at
1192+ *
11781193 * @return string|null
11791194 */
11801195 public function getCreatedAt ()
@@ -1183,6 +1198,8 @@ public function getCreatedAt()
11831198 }
11841199
11851200 /**
1201+ * Returns updated at
1202+ *
11861203 * @return string|null
11871204 */
11881205 public function getUpdatedAt ()
@@ -1191,6 +1208,8 @@ public function getUpdatedAt()
11911208 }
11921209
11931210 /**
1211+ * Returns is active
1212+ *
11941213 * @return bool
11951214 * @SuppressWarnings(PHPMD.BooleanGetMethodName)
11961215 */
@@ -1200,6 +1219,8 @@ public function getIsActive()
12001219 }
12011220
12021221 /**
1222+ * Returns category id
1223+ *
12031224 * @return int|null
12041225 */
12051226 public function getCategoryId ()
@@ -1208,6 +1229,8 @@ public function getCategoryId()
12081229 }
12091230
12101231 /**
1232+ * Returns display mode
1233+ *
12111234 * @return string|null
12121235 */
12131236 public function getDisplayMode ()
@@ -1216,6 +1239,8 @@ public function getDisplayMode()
12161239 }
12171240
12181241 /**
1242+ * Returns is include in menu
1243+ *
12191244 * @return bool|null
12201245 */
12211246 public function getIncludeInMenu ()
@@ -1224,6 +1249,8 @@ public function getIncludeInMenu()
12241249 }
12251250
12261251 /**
1252+ * Returns url key
1253+ *
12271254 * @return string|null
12281255 */
12291256 public function getUrlKey ()
@@ -1232,6 +1259,8 @@ public function getUrlKey()
12321259 }
12331260
12341261 /**
1262+ * Returns children data
1263+ *
12351264 * @return \Magento\Catalog\Api\Data\CategoryTreeInterface[]|null
12361265 */
12371266 public function getChildrenData ()
@@ -1347,6 +1376,8 @@ public function setLevel($level)
13471376 }
13481377
13491378 /**
1379+ * Set updated at
1380+ *
13501381 * @param string $updatedAt
13511382 * @return $this
13521383 */
@@ -1356,6 +1387,8 @@ public function setUpdatedAt($updatedAt)
13561387 }
13571388
13581389 /**
1390+ * Set created at
1391+ *
13591392 * @param string $createdAt
13601393 * @return $this
13611394 */
@@ -1365,6 +1398,8 @@ public function setCreatedAt($createdAt)
13651398 }
13661399
13671400 /**
1401+ * Set path
1402+ *
13681403 * @param string $path
13691404 * @return $this
13701405 */
@@ -1374,6 +1409,8 @@ public function setPath($path)
13741409 }
13751410
13761411 /**
1412+ * Set available sort by
1413+ *
13771414 * @param string[]|string $availableSortBy
13781415 * @return $this
13791416 */
@@ -1383,6 +1420,8 @@ public function setAvailableSortBy($availableSortBy)
13831420 }
13841421
13851422 /**
1423+ * Set include in menu
1424+ *
13861425 * @param bool $includeInMenu
13871426 * @return $this
13881427 */
@@ -1403,6 +1442,8 @@ public function setProductCount($productCount)
14031442 }
14041443
14051444 /**
1445+ * Set children data
1446+ *
14061447 * @param \Magento\Catalog\Api\Data\CategoryTreeInterface[] $childrenData
14071448 * @return $this
14081449 */
@@ -1412,7 +1453,7 @@ public function setChildrenData(array $childrenData = null)
14121453 }
14131454
14141455 /**
1415- * { @inheritdoc}
1456+ * @inheritdoc
14161457 *
14171458 * @return \Magento\Catalog\Api\Data\CategoryExtensionInterface|null
14181459 */
@@ -1422,7 +1463,7 @@ public function getExtensionAttributes()
14221463 }
14231464
14241465 /**
1425- * { @inheritdoc}
1466+ * @inheritdoc
14261467 *
14271468 * @param \Magento\Catalog\Api\Data\CategoryExtensionInterface $extensionAttributes
14281469 * @return $this
0 commit comments