src/Framework/Form/Element/Select/Optgroup.php
public function getOptions()
    {
        $options = [];
        foreach ($this->childNodes as $child) {
            if ($child instanceof Option) {
                $options[] = $child;
            }
        }
        return $options;
    }
public function getOptions()
    {
        $options = [];
        foreach ($this->childNodes as $child) {
            if ($child instanceof Option) {
                $options[] = $child;
            }
        }
        return $options;
    }
public function getOptions ( ) { $ options = [ ] ; foreach ( $ this -> childNodes as $ child ) { if ( $ child instanceof Option ) { $ options [ ] = $ child ; } } return $ options ; }
Get option elements

@return array
Get option elements