OutputStyle
class OutputStyle extends SymfonyStyle implements NewLineAware (View source)
Properties
protected bool | $newLineWritten | If the last output written wrote a new line. |
Methods
Create a new Console OutputStyle instance.
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
Whether a newline has already been written.
Returns whether verbosity is quiet (-q).
Returns whether verbosity is verbose (-v).
Returns whether verbosity is very verbose (-vv).
Returns whether verbosity is debug (-vvv).
Get the underlying Symfony output implementation.
Details
void
__construct(InputInterface $input, OutputInterface $output)
Create a new Console OutputStyle instance.
write(string|iterable $messages, bool $newline = false, int $options = 0)
{@inheritdoc}
writeln(string|iterable $messages, int $type = self::OUTPUT_NORMAL)
{@inheritdoc}
newLine(int $count = 1)
{@inheritdoc}
bool
newLineWritten()
Whether a newline has already been written.
bool
isQuiet()
Returns whether verbosity is quiet (-q).
bool
isVerbose()
Returns whether verbosity is verbose (-v).
bool
isVeryVerbose()
Returns whether verbosity is very verbose (-vv).
bool
isDebug()
Returns whether verbosity is debug (-vvv).
OutputInterface
getOutput()
Get the underlying Symfony output implementation.