Пример #1
0
 /**
  * Removes all data from this storage
  */
 public function clear()
 {
     $this->items = [];
     $this->aliases->clear();
     $this->hierarchy->clear();
 }
Пример #2
0
 /**
  * Returns if an iterator can be created for the current entry.
  * @return bool true if the current entry can be iterated over, otherwise returns false.
  */
 public function hasChildren()
 {
     return !$this->_children->isEmpty();
 }