src/Html/Form/FormFieldset.php
public function generate(): string
    {
        $elements = [];
        if ($this->label != '') {
            $elements[] = Tags::legend($this->label, []);
        }
        foreach ($this->elements as $element) {
            /** @noinspection PhpUndefinedMethodInspection */
            $elements[] = $element->generate();
        }
        return Tags::fieldset($elements, $this->attributes);
    }
public function generate(): string
    {
        $elements = [];
        if ($this->label != '') {
            $elements[] = Tags::legend($this->label, []);
        }
        foreach ($this->elements as $element) {
            /** @noinspection PhpUndefinedMethodInspection */
            $elements[] = $element->generate();
        }
        return Tags::fieldset($elements, $this->attributes);
    }
public function generate ( ) : string { $ elements = [ ] ; if ( $ this -> label != '' ) { $ elements [ ] = Tags :: legend ( $ this -> label , [ ] ) ; } foreach ( $ this -> elements as $ element ) { /** @noinspection PhpUndefinedMethodInspection */ $ elements [ ] = $ element -> generate ( ) ; } return Tags :: fieldset ( $ elements , $ this -> attributes ) ; }
Generates from fieldset and returns it

@return string
Generates from fieldset and returns it