src/Framework/Form/Fieldset.php
public function setCurrent($i)
    {
        $this->current = (int)$i;
        if (!isset($this->fields[$this->current])) {
            $this->fields[$this->current] = [];
        }
        return $this;
    }
public function setCurrent($i)
    {
        $this->current = (int)$i;
        if (!isset($this->fields[$this->current])) {
            $this->fields[$this->current] = [];
        }
        return $this;
    }
public function setCurrent ( $ i ) { $ this -> current = ( int ) $ i ; if ( ! isset ( $ this -> fields [ $ this -> current ] ) ) { $ this -> fields [ $ this -> current ] = [ ] ; } return $ this ; }
Method to get current group index

@param  int $i
@return Fieldset
Method to get current group index