FluentDOM\Iterators\ElementIterator::getChildren PHP Method

getChildren() public method

Get child nodes of the current iterator element
    public function getChildren()
    {
        $element = $this->current();
        if ($element instanceof Element) {
            return new self($element);
        }
        throw new \UnexpectedValueException('Called ' . __METHOD__ . ' with invalid current element.');
    }