Spec-Zone.ru › Laravel 9

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.

Параметры

InputInterface $input
OutputInterface $output

Возвращаемое значение

void

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

{@inheritdoc}

Параметры

string|iterable $messages
bool $newline
int $options

Возвращаемое значение

void

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

{@inheritdoc}

Параметры

string|iterable $messages
int $type

Возвращаемое значение

void

void newLine(int $count = 1)

{@inheritdoc}

Параметры

int $count

Возвращаемое значение

void

bool newLineWritten()

Узнать, была ли уже выведена новая строка.

Возвращаемое значение

bool

bool isQuiet()

Возвращает значение, указывающее, включена ли тихая вербозность (-q).

Возвращаемое значение

bool

bool isVerbose()

Возвращает значение, указывающее, включена ли подробная вербозность (-v).

Возвращаемое значение

bool

bool isVeryVerbose()

Возвращает значение, указывающее, включена ли очень подробная вербозность (-vv).

Возвращаемое значение

bool

bool isDebug()

Возвращает значение, указывающее, включен ли отладочный режим (-vvv).

Возвращаемое значение

bool

OutputInterface getOutput()

Получить базовую реализацию вывода Symfony.

Возвращаемое значение

OutputInterface

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/9.x/Illuminate/Console/OutputStyle.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API