public function addCheckbox() : Checkbox
    {
        $checkbox = new Checkbox($this->form, $this->name . '[]');
        $this->checkboxes[] = $checkbox;

        return $checkbox;
    }
public function addCheckbox() : Checkbox
    {
        $checkbox = new Checkbox($this->form, $this->name . '[]');
        $this->checkboxes[] = $checkbox;

        return $checkbox;
    }
public function addCheckbox ( ) : Checkbox { $ checkbox = new Checkbox ( $ this -> form , $ this -> name . '[]' ) ; $ this -> checkboxes [ ] = $ checkbox ; return $ checkbox ; }
Adds a checkbox to this group and returns it.

@return Checkbox
Adds a checkbox to this group and returns it .