public function write(array $messages, bool $newLine = null, OutputStyle $outputStyle = null): void
    {
        foreach ($messages as $message) {
            $this->writeMessage($message, $newLine, $outputStyle);
        }
    }
public function write(array $messages, bool $newLine = null, OutputStyle $outputStyle = null): void
    {
        foreach ($messages as $message) {
            $this->writeMessage($message, $newLine, $outputStyle);
        }
    }
public function write ( array $ messages , bool $ newLine = null , OutputStyle $ outputStyle = null ) : void { foreach ( $ messages as $ message ) { $ this -> writeMessage ( $ message , $ newLine , $ outputStyle ) ; } }
Write messages to the console.

@param array       $messages    The messages
@param bool        $newLine     [optional] Whether to use new lines
between each message
@param OutputStyle $outputStyle [optional] The output style to use

@throws \InvalidArgumentException

@return void
Write messages to the console .