示例#1
0
 /**
  * Check if the sidebar has items.
  *
  * @return bool
  */
 public function hasItems()
 {
     return !$this->items->isEmpty();
 }
示例#2
0
文件: Item.php 项目: ARCANESOFT/Core
 /**
  * Check if the item has children.
  *
  * @return bool
  */
 public function hasChildren()
 {
     return !$this->children->isEmpty();
 }