hasChildren() || true === parent::accept(); } /** * Get an iterator for the current entry. * * @return \Hoa\Iterator\Recursive\RegularExpression */ public function getChildren() { return new static( true === $this->hasChildren() ? $this->getInnerIterator()->getChildren() : null, $this->getRegex(), $this->getMode(), $this->getFlags(), $this->getPregFlags() ); } /** * Check whether an iterator can be obtained for the current entry. * * @return bool */ public function hasChildren() { return $this->getInnerIterator()->hasChildren(); } }