protected function createBootstrapFormInputElementByType($type, $value, $attributes, &$return)
    {
        $return = NULL;

        if( $class = ($this->settings['group']['class'] ?? NULL) )
        {
            if( $this->isCheckboxOrRadio($type) )
            {
                if( $class === 'form-group' )
                {
                    $class = $type;
                }
                elseif( $class !== $type )
                {
                    $class = Base::prefix($class, $type . ' ');
                }
            }

            $return .= '<div class="' . $class . '">' . EOL;

            unset($this->settings['group']);
        }

        if( $for = ($this->settings['label']['for'] ?? NULL) )
        {   
            if( ! $this->isCheckboxOrRadio($type) )
            {
                $this->createBootstrapInputLabelElement($for, $return);
            }
            else
            {
                $this->createBootstrapRadioOrCheckboxOpenLabelElement($type, $radioOrCheckboxLabel, $return);
            }

            unset($this->settings['label']);
        }

        $return .= $value;

        $this->isHelpBlockElement($return);

        $this->isBootstrapColumnSize($return);

        if( isset($radioOrCheckboxLabel) )
        {
            $this->createBootstrapRadioOrCheckboxCloseLabelElement($for, $radioOrCheckboxLabel, $return);
        }

        if( $class )
        {
            $return .= '</div>' . EOL;
        }
    }