private function generateIndent( $indent )
    {
        if( is_integer( $indent ) ) {
            $indent = str_repeat( $this->indentChar, $indent );
        } elseif( !is_string($indent) ) {
            throw new BadTypeException( $indent, 'int|string' );
        }
        return $indent;
    }