src/Framework/Form/Element/CheckboxSet.php
public function render($depth = 0, $indent = null, $inner = false)
    {
        if (!empty($this->legend)) {
            $this->addChild(new Child('legend', $this->legend));
        }
        return parent::render($depth, $indent, $inner);
    }
public function render($depth = 0, $indent = null, $inner = false)
    {
        if (!empty($this->legend)) {
            $this->addChild(new Child('legend', $this->legend));
        }
        return parent::render($depth, $indent, $inner);
    }
public function render ( $ depth = 0 , $ indent = null , $ inner = false ) { if ( ! empty ( $ this -> legend ) ) { $ this -> addChild ( new Child ( 'legend' , $ this -> legend ) ) ; } return parent :: render ( $ depth , $ indent , $ inner ) ; }
Render the child and its child nodes

@param  int     $depth
@param  string  $indent
@param  boolean $inner
@return string
Render the child and its child nodes