* @package WoltLabSuite\Core\Data\Article\Category
* @since 3.0
*
+ * @method ArticleCategory[] getChildCategories()
+ * @method ArticleCategory getParentCategory()
+ * @method ArticleCategory[] getParentCategories()
* @method static ArticleCategory|null getCategory($categoryID)
*/
class ArticleCategory extends AbstractDecoratedCategory implements ITitledLinkObject {
}
/**
- * Returns the parent category of this category.
+ * Returns the parent category of the category or `null` if the category has no parent category.
*
- * @return Category
+ * @return Category|null
*/
public function getParentCategory() {
if ($this->parentCategoryID && $this->parentCategory === null) {
* @copyright 2001-2016 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @package WoltLabSuite\Core\Data\Smiley\Category
+ *
+ * @method SmileyCategory[] getChildCategories()
+ * @method SmileyCategory getParentCategory()
+ * @method SmileyCategory[] getParentCategories()
+ * @method static SmileyCategory|null getCategory($categoryID)
*/
class SmileyCategory extends AbstractDecoratedCategory implements \Countable, ITraversableObject {
/**