protected static function formatDumpStack($stack, $var)
    {
        $ret = (count($stack) ? join('', $stack) : '');
        $ret .= '<' . (
            is_array($var)
                ? 'array(' . count($var) . ')'
                : get_class($var)
            ) . '>';

        return $ret;
    }