You are here

public function OutputInterface::write 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::write()

Writes a message to the output.

Parameters

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

bool $newline Whether to add a newline:

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

Throws

\InvalidArgumentException When unknown output type is given

3 methods override OutputInterface::write()
NullOutput::write in vendor/symfony/console/Output/NullOutput.php
Writes a message to the output.
Output::write in vendor/symfony/console/Output/Output.php
Writes a message to the output.
OutputStyle::write in vendor/symfony/console/Style/OutputStyle.php
Writes a message to the output.

File

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

Class

OutputInterface
OutputInterface is the interface implemented by all Output classes.

Namespace

Symfony\Component\Console\Output

Code

public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL);