write() публичный Метод

Writes some text to the text writer
См. также: TextWriter::write()
public write ( string $text, $pipe = TextWriter::STDOUT ) : Console
$text string
Результат Console
Пример #1
0
 /**
  * Writes some text to the text writer
  * 
  * @see format()
  * @param string $text
  * @param int|array $formatOptions
  * @param int $pipe
  * @return Command
  */
 public function write($text, $formatOptions = array(), $pipe = TextWriter::STDOUT)
 {
     $this->console->write($this->format($text, $formatOptions), $pipe);
     return $this;
 }
Пример #2
0
 /**
  * @param $message
  */
 public function log($message)
 {
     $out = new Console();
     $out->write($message);
 }