ConsoleKit\Console::writeln PHP Method

writeln() public method

Writes a line of text
See also: TextWriter::writeln()
public writeln ( string $text = '', $pipe = TextWriter::STDOUT ) : Console
$text string
return Console
    public function writeln($text = '', $pipe = TextWriter::STDOUT)
    {
        $this->textWriter->writeln($text, $pipe);
        return $this;
    }

Usage Example

Ejemplo n.º 1
0
 public static function test()
 {
     $out = new Console();
     $singleton1 = Singleton::getInstance('Singleton 1');
     $singleton2 = Singleton::getInstance('Singleton 2');
     $out->writeln($singleton1->getName());
     $out->writeln($singleton2->getName());
 }
All Usage Examples Of ConsoleKit\Console::writeln