protected function dumpPhpDoc($phpDoc)
    {
        $str = '';
        foreach ($phpDoc as $k => $values) {
            if (!\is_array($values)) {
                continue;
            }
            foreach ($values as $value) {
                if ($k == 'link') {
                    $value = '<a href="'.$value['uri'].'" target="_blank">'
                        .\htmlspecialchars($value['desc'] ?: $value['uri'])
                        .'</a>';
                } elseif ($k == 'see' && $value['uri']) {
                    $value = '<a href="'.$value['uri'].'" target="_blank">'
                        .\htmlspecialchars($value['desc'] ?: $value['uri'])
                        .'</a>';
                } else {
                    $value = \htmlspecialchars(\implode(' ', $value));
                }
                $str .= '<dd class="phpdoc phpdoc-'.$k.'">'
                    .'<span class="phpdoc-tag">'.$k.'</span>'
                    .'<span class="t_operator">:</span> '
                    .$value
                    .'</dd>'."\n";
            }
        }
        if ($str) {
            $str = '<dt class="phpDoc">phpDoc</dt>'."\n"
                .$str;
        }
        return $str;
    }
protected function dumpPhpDoc($phpDoc)
    {
        $str = '';
        foreach ($phpDoc as $k => $values) {
            if (!\is_array($values)) {
                continue;
            }
            foreach ($values as $value) {
                if ($k == 'link') {
                    $value = '<a href="'.$value['uri'].'" target="_blank">'
                        .\htmlspecialchars($value['desc'] ?: $value['uri'])
                        .'</a>';
                } elseif ($k == 'see' && $value['uri']) {
                    $value = '<a href="'.$value['uri'].'" target="_blank">'
                        .\htmlspecialchars($value['desc'] ?: $value['uri'])
                        .'</a>';
                } else {
                    $value = \htmlspecialchars(\implode(' ', $value));
                }
                $str .= '<dd class="phpdoc phpdoc-'.$k.'">'
                    .'<span class="phpdoc-tag">'.$k.'</span>'
                    .'<span class="t_operator">:</span> '
                    .$value
                    .'</dd>'."\n";
            }
        }
        if ($str) {
            $str = '<dt class="phpDoc">phpDoc</dt>'."\n"
                .$str;
        }
        return $str;
    }
protected function dumpPhpDoc ( $ phpDoc ) { $ str = '' ; foreach ( $ phpDoc as $ k => $ values ) { if ( ! \ is_array ( $ values ) ) { continue ; } foreach ( $ values as $ value ) { if ( $ k == 'link' ) { $ value = '<a href="' . $ value [ 'uri' ] . '" target="_blank">' . \ htmlspecialchars ( $ value [ 'desc' ] ? : $ value [ 'uri' ] ) . '</a>' ; } elseif ( $ k == 'see' && $ value [ 'uri' ] ) { $ value = '<a href="' . $ value [ 'uri' ] . '" target="_blank">' . \ htmlspecialchars ( $ value [ 'desc' ] ? : $ value [ 'uri' ] ) . '</a>' ; } else { $ value = \ htmlspecialchars ( \ implode ( ' ' , $ value ) ) ; } $ str .= '<dd class="phpdoc phpdoc-' . $ k . '">' . '<span class="phpdoc-tag">' . $ k . '</span>' . '<span class="t_operator">:</span> ' . $ value . '</dd>' . "\n" ; } } if ( $ str ) { $ str = '<dt class="phpDoc">phpDoc</dt>' . "\n" . $ str ; } return $ str ; }
Dump object's phpDoc info as html

@param array $phpDoc parsed phpDoc

@return string html
Dump object s phpDoc info as html