protected function dumpMethods($methods)
    {
        $label = \count($methods)
            ? 'methods'
            : 'no methods';
        $str = '<dt class="methods">'.$label.'</dt>'."\n";
        $magicMethods = \array_intersect(array('__call','__callStatic'), \array_keys($methods));
        $str .= $this->magicMethodInfo($magicMethods);
        foreach ($methods as $methodName => $info) {
            if (!isset($info['phpDoc']['return'])) {
                $info['phpDoc']['return'] = array(
                    'desc' => null,
                    'type' => null,
                );
            }
            $classes = \array_keys(\array_filter(array(
                'method' => true,
                'deprecated' => $info['isDeprecated'],
            )));
            $modifiers = \array_keys(\array_filter(array(
                'final' => $info['isFinal'],
                $info['visibility'] => true,
                'static' => $info['isStatic'],
            )));
            $str .= $this->debug->utilities->buildTag(
                'dd',
                array(
                    'class' => \array_merge($classes, $modifiers),
                    'data-implements' => $info['implements'],
                ),
                \implode(' ', \array_map(function ($modifier) {
                    return '<span class="t_modifier_'.$modifier.'">'.$modifier.'</span>';
                }, $modifiers))
                .' '.$this->debug->utilities->buildTag(
                    'span',
                    array(
                        'class' => 't_type',
                        'title' => $info['phpDoc']['return']['desc'],
                    ),
                    $info['phpDoc']['return']['type']
                )
                .' '.$this->debug->utilities->buildTag(
                    'span',
                    array(
                        'class' => 'method-name',
                        'title' => \trim($info['phpDoc']['summary']
                            .($this->debug->output->getCfg('outputMethodDescription')
                                ? "\n\n".$info['phpDoc']['description']
                                : '')),
                    ),
                    $methodName
                )
                .'<span class="t_punct">(</span>'
                .$this->dumpMethodParams($info['params'])
                .'<span class="t_punct">)</span>'
                .($methodName == '__toString'
                    ? '<br />'.$this->debug->output->html->dump($info['returnValue'])
                    : '')
            )."\n";
        }
        $str = \str_replace(' data-implements="null"', '', $str);
        $str = \str_replace(' <span class="t_type"></span>', '', $str);
        return $str;
    }