ConsoleKit\Console::write PHP Method

write() public method

Writes some text to the text writer
See also: TextWriter::write()
public write ( string $text, $pipe = TextWriter::STDOUT ) : Console
$text string
return Console
    public function write($text, $pipe = TextWriter::STDOUT)
    {
        $this->textWriter->write($text, $pipe);
        return $this;
    }

Usage Example

Exemplo n.º 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;
 }
All Usage Examples Of ConsoleKit\Console::write