OutputStyle
class OutputStyle extends SymfonyStyle implements NewLineAware (View source)
Свойства
| protected int | $newLinesWritten | Количество символов новой строки, выведенных в последнем выводе. | |
| protected bool deprecated | $newLineWritten | Указывает, была ли добавлена новая строка в последний вывод. |
Методы
| void | __construct(InputInterface $input, OutputInterface $output)
Создать новый экземпляр Console OutputStyle. | |
| 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()
Количество символов новой строки, добавленных в конце. | |
| bool | newLineWritten() deprecated
Указывает, была ли добавлена новая строка ранее. | |
| trailingNewLineCount($messages) Без описания | ||
| bool | isQuiet()
Возвращает значение, если уровень детализации тихий (-q). | |
| bool | isVerbose()
Возвращает значение, если уровень детализации подробный (-v). | |
| bool | isVeryVerbose()
Возвращает значение, если уровень детализации очень подробный (-vv). | |
| bool | isDebug()
Возвращает значение, если уровень детализации отладочный (-vvv). | |
| OutputInterface | getOutput()
Получить базовую реализацию вывода Symfony. |
Подробности
void __construct(InputInterface $input, OutputInterface $output)
Создать новый экземпляр Console OutputStyle.
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()
Сколько завершающих символов новой строки было записано.
bool newLineWritten() устарело
устарело
Была ли уже записана новая строка.
protected trailingNewLineCount($messages)
Описание отсутствует
bool isQuiet()
Возвращает значение true, если уровень подробности тихий (-q).
bool isVerbose()
Возвращает значение true, если уровень подробности подробный (-v).
bool isVeryVerbose()
Возвращает значение true, если уровень подробности очень подробный (-vv).
bool isDebug()
Возвращает значение true, если уровень подробности отладочный (-vvv).
OutputInterface getOutput()
Получить базовую реализацию вывода Symfony.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Console/OutputStyle.html