protected function append(string $val, bool $addPostNewline = false, bool $addIndentation = false, bool $addPreNewline = false) : void
    {
        if ($addPreNewline) {
            $this->output .= "\n";
            ++$this->currentLine;
        }

        if ($addIndentation) {
            $val = $this->prefix.$val;
        }

        $this->output .= $val;

        if ($addPostNewline) {
            $this->output .= "\n";
            ++$this->currentLine;
        }
    }
protected function append(string $val, bool $addPostNewline = false, bool $addIndentation = false, bool $addPreNewline = false) : void
    {
        if ($addPreNewline) {
            $this->output .= "\n";
            ++$this->currentLine;
        }

        if ($addIndentation) {
            $val = $this->prefix.$val;
        }

        $this->output .= $val;

        if ($addPostNewline) {
            $this->output .= "\n";
            ++$this->currentLine;
        }
    }
protected function append ( string $ val , bool $ addPostNewline = false , bool $ addIndentation = false , bool $ addPreNewline = false ) : void { if ( $ addPreNewline ) { $ this -> output .= "\n" ; ++ $ this -> currentLine ; } if ( $ addIndentation ) { $ val = $ this -> prefix . $ val ; } $ this -> output .= $ val ; if ( $ addPostNewline ) { $ this -> output .= "\n" ; ++ $ this -> currentLine ; } }
Adds content to the output

@param string $val
@param bool $addPostNewline Indicates if add a newline after the value
@param bool $addIndentation Indicates if add indentation to the line
@param bool $addPreNewline Indicates if add a new line before the value

@return void
Adds content to the output