示例#1
0
文件: Ansi.php 项目: bramus/ansi-php
 /**
  * Write a piece of text onto the writer
  * @param  string $text The text to write
  * @return Ansi   self, for chaining
  */
 public function text($text)
 {
     // Write the text to the writer
     $this->writer->write($text);
     // Afford chaining
     return $this;
 }
示例#2
0
 /**
  * Write entries
  *
  * @return void
  */
 public function report()
 {
     $this->_successWriter->write($this->_successEntries);
     $this->_errorWriter->write($this->_errorEntries);
 }