public function addChoiceField($name, $type, array $args = [])
    {
        return $this->initializeField(new ChoiceFieldBuilder($name, $type, $args));
    }
public function addChoiceField($name, $type, array $args = [])
    {
        return $this->initializeField(new ChoiceFieldBuilder($name, $type, $args));
    }
public function addChoiceField ( $ name , $ type , array $ args = [ ] ) { return $ this -> initializeField ( new ChoiceFieldBuilder ( $ name , $ type , $ args ) ) ; }
Add a field of a choice type, allows choices to be added.
@param string $name
@param string $type 'select', 'radio', 'checkbox'
@param array $args field configuration
@throws FieldNameCollisionException if name already exists.
@return FieldBuilder
Add a field of a choice type allows choices to be added .