protected function createChildren()
    {
        $this->children = [];
        $this->determineChoiceField();

        $fieldType = $this->formHelper->getFieldType($this->choiceType);

        switch ($this->choiceType) {
            case 'radio':
            case 'checkbox':
                $this->buildCheckableChildren($fieldType);
                break;
            default:
                $this->buildSelect($fieldType);
                break;
        }
    }
protected function createChildren()
    {
        $this->children = [];
        $this->determineChoiceField();

        $fieldType = $this->formHelper->getFieldType($this->choiceType);

        switch ($this->choiceType) {
            case 'radio':
            case 'checkbox':
                $this->buildCheckableChildren($fieldType);
                break;
            default:
                $this->buildSelect($fieldType);
                break;
        }
    }
protected function createChildren ( ) { $ this -> children = [ ] ; $ this -> determineChoiceField ( ) ; $ fieldType = $ this -> formHelper -> getFieldType ( $ this -> choiceType ) ; switch ( $ this -> choiceType ) { case 'radio' : case 'checkbox' : $ this -> buildCheckableChildren ( $ fieldType ) ; break ; default : $ this -> buildSelect ( $ fieldType ) ; break ; } }
Create children depending on choice type
Create children depending on choice type