/** * Removes all data from this storage */ public function clear() { $this->items = []; $this->aliases->clear(); $this->hierarchy->clear(); }
/** * 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(); }