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