OutputStyle
class OutputStyle extends SymfonyStyle implements NewLineAware
Properties
| protected int | $newLinesWritten | The number of trailing new lines written by the last output. |
Methods
Create a new Console OutputStyle instance.
No description
No description
No description
No description
Get how many trailing newlines were written.
Count the number of trailing new lines in a string.
Determine whether output with the given options is visible.
Determine whether verbosity is quiet (-q).
Determine whether verbosity is verbose (-v).
Determine whether verbosity is very verbose (-vv).
Determine whether verbosity is debug (-vvv).
Get the underlying Symfony output implementation.
Details
at line 26
__construct(InputInterface $input, OutputInterface $output)
Create a new Console OutputStyle instance.
at line 33
mixed
askQuestion(Question $question)
No description
at line 43
void
write(string|iterable $messages, bool $newline = false, int $options = 0)
No description
at line 65
void
writeln(string|iterable $messages, int $type = self::OUTPUT_NORMAL)
No description
at line 71
void
newLine(int $count = 1)
No description
at line 81
int
newLinesWritten()
Get how many trailing newlines were written.
at line 93
protected int
trailingNewLineCount(string $message)
Count the number of trailing new lines in a string.
at line 101
protected bool
shouldWrite(int $options)
Determine whether output with the given options is visible.
at line 117
bool
isQuiet()
Determine whether verbosity is quiet (-q).
at line 125
bool
isVerbose()
Determine whether verbosity is verbose (-v).
at line 133
bool
isVeryVerbose()
Determine whether verbosity is very verbose (-vv).
at line 141
bool
isDebug()
Determine whether verbosity is debug (-vvv).
at line 149
OutputInterface
getOutput()
Get the underlying Symfony output implementation.