class Factory

Methods

__construct(OutputStyle $output)

Create a new factory instance.

mixed
__call(string $method, array $parameters)

Dynamically handle calls into the component instance.

void
alert(string $string, int $verbosity = 'OutputInterface::VERBOSITY_NORMAL')

No description

mixed
ask(string $question, ?string $default = 'null', bool $multiline = 'false')

No description

mixed
askWithCompletion(string $question, iterable|callable $choices, ?string $default = 'null')

No description

void
bulletList(array $elements, int $verbosity = 'OutputInterface::VERBOSITY_NORMAL')

No description

mixed
choice(string $question, array $choices, mixed $default = 'null', ?int $attempts = 'null', bool $multiple = 'false')

No description

bool
confirm(string $question, bool $default = 'false')

No description

void
info(string $string, int $verbosity = 'OutputInterface::VERBOSITY_NORMAL')

No description

void
success(string $string, int $verbosity = 'OutputInterface::VERBOSITY_NORMAL')

No description

void
error(string $string, int $verbosity = 'OutputInterface::VERBOSITY_NORMAL')

No description

void
line(string $style, string $string, int $verbosity = 'OutputInterface::VERBOSITY_NORMAL')

No description

mixed
secret(string $question, bool $fallback = 'true')

No description

void
task(string $description, ?callable $task = 'null', int $verbosity = 'OutputInterface::VERBOSITY_NORMAL')

No description

void
twoColumnDetail(Stringable|string $first, Stringable|string|null $second = 'null', int $verbosity = 'OutputInterface::VERBOSITY_NORMAL')

No description

void
warn(string $string, int $verbosity = 'OutputInterface::VERBOSITY_NORMAL')

No description

Details

at line 33
__construct(OutputStyle $output)

Create a new factory instance.

Parameters

OutputStyle $output

at line 43
mixed __call(string $method, array $parameters)

Dynamically handle calls into the component instance.

Parameters

string $method
array $parameters

Return Value

mixed

Exceptions

InvalidArgumentException

at line 28
void alert(string $string, int $verbosity = 'OutputInterface::VERBOSITY_NORMAL')

No description

Parameters

string $string
int $verbosity

Return Value

void

at line 28
mixed ask(string $question, ?string $default = 'null', bool $multiline = 'false')

No description

Parameters

string $question
?string $default
bool $multiline

Return Value

mixed

at line 28
mixed askWithCompletion(string $question, iterable|callable $choices, ?string $default = 'null')

No description

Parameters

string $question
iterable|callable $choices
?string $default

Return Value

mixed

at line 28
void bulletList(array $elements, int $verbosity = 'OutputInterface::VERBOSITY_NORMAL')

No description

Parameters

array $elements
int $verbosity

Return Value

void

at line 28
mixed choice(string $question, array $choices, mixed $default = 'null', ?int $attempts = 'null', bool $multiple = 'false')

No description

Parameters

string $question
array $choices
mixed $default
?int $attempts
bool $multiple

Return Value

mixed

at line 28
bool confirm(string $question, bool $default = 'false')

No description

Parameters

string $question
bool $default

Return Value

bool

at line 28
void info(string $string, int $verbosity = 'OutputInterface::VERBOSITY_NORMAL')

No description

Parameters

string $string
int $verbosity

Return Value

void

at line 28
void success(string $string, int $verbosity = 'OutputInterface::VERBOSITY_NORMAL')

No description

Parameters

string $string
int $verbosity

Return Value

void

at line 28
void error(string $string, int $verbosity = 'OutputInterface::VERBOSITY_NORMAL')

No description

Parameters

string $string
int $verbosity

Return Value

void

at line 28
void line(string $style, string $string, int $verbosity = 'OutputInterface::VERBOSITY_NORMAL')

No description

Parameters

string $style
string $string
int $verbosity

Return Value

void

at line 28
mixed secret(string $question, bool $fallback = 'true')

No description

Parameters

string $question
bool $fallback

Return Value

mixed

at line 28
void task(string $description, ?callable $task = 'null', int $verbosity = 'OutputInterface::VERBOSITY_NORMAL')

No description

Parameters

string $description
?callable $task
int $verbosity

Return Value

void

at line 28
void twoColumnDetail(Stringable|string $first, Stringable|string|null $second = 'null', int $verbosity = 'OutputInterface::VERBOSITY_NORMAL')

No description

Parameters

Stringable|string $first
Stringable|string|null $second
int $verbosity

Return Value

void

at line 28
void warn(string $string, int $verbosity = 'OutputInterface::VERBOSITY_NORMAL')

No description

Parameters

string $string
int $verbosity

Return Value

void