FML/Components/CheckBox.php
public function setEnabledDesign($style, $subStyle = null)
    {
        if ($style instanceof CheckBoxDesign) {
            $this->feature->setEnabledDesign($style);
        } else {
            $checkBoxDesign = new CheckBoxDesign($style, $subStyle);
            $this->feature->setEnabledDesign($checkBoxDesign);
        }
        return $this;
    }
public function setEnabledDesign($style, $subStyle = null)
    {
        if ($style instanceof CheckBoxDesign) {
            $this->feature->setEnabledDesign($style);
        } else {
            $checkBoxDesign = new CheckBoxDesign($style, $subStyle);
            $this->feature->setEnabledDesign($checkBoxDesign);
        }
        return $this;
    }
public function setEnabledDesign ( $ style , $ subStyle = null ) { if ( $ style instanceof CheckBoxDesign ) { $ this -> feature -> setEnabledDesign ( $ style ) ; } else { $ checkBoxDesign = new CheckBoxDesign ( $ style , $ subStyle ) ; $ this -> feature -> setEnabledDesign ( $ checkBoxDesign ) ; } return $ this ; }
Set the enabled design

@api
@param string|CheckBoxDesign $style    Style name, image url or checkbox design
@param string                $subStyle SubStyle name
@return static
Set the enabled design