You are here

public function OutputInterface::writeln in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Output/OutputInterface.php \Symfony\Component\Console\Output\OutputInterface::writeln()

Writes a message to the output and adds a newline at the end.

Parameters

string|array $messages The message as an array of lines or a single string:

int $type The type of output (one of the OUTPUT constants):

Throws

\InvalidArgumentException When unknown output type is given

3 methods override OutputInterface::writeln()
NullOutput::writeln in vendor/symfony/console/Output/NullOutput.php
Writes a message to the output and adds a newline at the end.
Output::writeln in vendor/symfony/console/Output/Output.php
Writes a message to the output and adds a newline at the end.
OutputStyle::writeln in vendor/symfony/console/Style/OutputStyle.php
Writes a message to the output and adds a newline at the end.

File

vendor/symfony/console/Output/OutputInterface.php, line 52

Class

OutputInterface
OutputInterface is the interface implemented by all Output classes.

Namespace

Symfony\Component\Console\Output

Code

public function writeln($messages, $type = self::OUTPUT_NORMAL);