class OutputStyle extends SymfonyStyle implements NewLineAware

Properties

protected int $newLinesWritten

The number of trailing new lines written by the last output.

Methods

__construct(InputInterface $input, OutputInterface $output)

Create a new Console OutputStyle instance.

mixed
askQuestion(Question $question)

No description

void
write(string|iterable $messages, bool $newline = false, int $options = 0)

No description

void
writeln(string|iterable $messages, int $type = self::OUTPUT_NORMAL)

No description

void
newLine(int $count = 1)

No description

int
newLinesWritten()

Get how many trailing newlines were written.

int
trailingNewLineCount(string $message)

Count the number of trailing new lines in a string.

bool
shouldWrite(int $options)

Determine whether output with the given options is visible.

bool
isQuiet()

Determine whether verbosity is quiet (-q).

bool
isVerbose()

Determine whether verbosity is verbose (-v).

bool
isVeryVerbose()

Determine whether verbosity is very verbose (-vv).

bool
isDebug()

Determine whether verbosity is debug (-vvv).

OutputInterface
getOutput()

Get the underlying Symfony output implementation.

Details

at line 26
__construct(InputInterface $input, OutputInterface $output)

Create a new Console OutputStyle instance.

Parameters

InputInterface $input
OutputInterface $output

at line 33
mixed askQuestion(Question $question)

No description

Parameters

Question $question

Return Value

mixed

at line 43
void write(string|iterable $messages, bool $newline = false, int $options = 0)

No description

Parameters

string|iterable $messages
bool $newline
int $options

Return Value

void

at line 65
void writeln(string|iterable $messages, int $type = self::OUTPUT_NORMAL)

No description

Parameters

string|iterable $messages
int $type

Return Value

void

at line 71
void newLine(int $count = 1)

No description

Parameters

int $count

Return Value

void

at line 81
int newLinesWritten()

Get how many trailing newlines were written.

Return Value

int

at line 93
protected int trailingNewLineCount(string $message)

Count the number of trailing new lines in a string.

Parameters

string $message

Return Value

int

at line 101
protected bool shouldWrite(int $options)

Determine whether output with the given options is visible.

Parameters

int $options

Return Value

bool

at line 117
bool isQuiet()

Determine whether verbosity is quiet (-q).

Return Value

bool

at line 125
bool isVerbose()

Determine whether verbosity is verbose (-v).

Return Value

bool

at line 133
bool isVeryVerbose()

Determine whether verbosity is very verbose (-vv).

Return Value

bool

at line 141
bool isDebug()

Determine whether verbosity is debug (-vvv).

Return Value

bool

at line 149
OutputInterface getOutput()

Get the underlying Symfony output implementation.

Return Value

OutputInterface