public function getAll(): array
    {
        $this->rewind();
        $allValues = [];
        while ($this->valid()) {
            $allValues[] = $this->getCurrentElement()->getValue();
            $this->next();
        }
        return $allValues;
    }
public function getAll(): array
    {
        $this->rewind();
        $allValues = [];
        while ($this->valid()) {
            $allValues[] = $this->getCurrentElement()->getValue();
            $this->next();
        }
        return $allValues;
    }
public function getAll ( ) : array { $ this -> rewind ( ) ; $ allValues = [ ] ; while ( $ this -> valid ( ) ) { $ allValues [ ] = $ this -> getCurrentElement ( ) -> getValue ( ) ; $ this -> next ( ) ; } return $ allValues ; }
Returns all elements of the iterator in an array

@return array All elements of the iterator
Returns all elements of the iterator in an array