public function writeln($lines)
    {
        if (!is_array($lines)) {
            $lines = [$lines];
        }

        foreach ($lines as $line) {
            $this->write($line);
            $this->newline();
        }
        return $this;
    }
public function writeln($lines)
    {
        if (!is_array($lines)) {
            $lines = [$lines];
        }

        foreach ($lines as $line) {
            $this->write($line);
            $this->newline();
        }
        return $this;
    }
public function writeln ( $ lines ) { if ( ! is_array ( $ lines ) ) { $ lines = [ $ lines ] ; } foreach ( $ lines as $ line ) { $ this -> write ( $ line ) ; $ this -> newline ( ) ; } return $ this ; }
Write a line or array of lines to the console. This will always end in a newline.

@param string|string[] $lines

@return $this
Write a line or array of lines to the console . This will always end in a newline .