示例#1
0
 /**
  * Append a buffer object
  *
  * @param Buffer $buf
  * @param integer $indent = 0
  */
 public function appendBuffer(Buffer $buf, $indent = 0)
 {
     if ($indent) {
         $this->setIndent($indent);
         $lines = $buf->lines();
         foreach ($lines as $line) {
             $this->appendLine($line);
         }
     } else {
         $this->content .= $buf->__toString();
     }
 }