OutputStyle
class OutputStyle extends SymfonyStyle implements NewLineAware (View source)
Properties
| protected int | $newLinesWritten | The number of trailing new lines written by the last output. |
|
| protected bool deprecated | $newLineWritten | If the last output written wrote a new line. |
Methods
Create a new Console OutputStyle instance.
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
How many trailing newlines were written.
No description
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.
mixed
askQuestion(Question $question)
{@inheritdoc}
void
write(string|iterable $messages, bool $newline = false, int $options = 0)
{@inheritdoc}
void
writeln(string|iterable $messages, int $type = self::OUTPUT_NORMAL)
{@inheritdoc}
void
newLine(int $count = 1)
{@inheritdoc}
int
newLinesWritten()
How many trailing newlines were written.
bool
newLineWritten()
deprecated
deprecated
Whether a newline has already been written.
protected
trailingNewLineCount($messages)
No description
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.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.