QuestionHelper
class QuestionHelper extends Helper
The QuestionHelper class provides helpers to interact with the user.
Properties
protected | $helperSet | from Helper |
Methods
from Helper
static int
strlen(string $string)
Returns the length of a string, using mb_strwidth if it is available.
from Helper
static string
substr(string $string, int $from, int|null $length = null)
Returns the subset of a string, using mb_substr if it is available.
from Helper
static
from Helper
mixed
ask(InputInterface $input, OutputInterface $output, Question $question)
Asks a question to the user.
string
getName()
Returns the canonical name of this helper.
static
disableStty()
Prevents usage of stty.
Details
static int
strlen(string $string)
Returns the length of a string, using mb_strwidth if it is available.
static string
substr(string $string, int $from, int|null $length = null)
Returns the subset of a string, using mb_substr if it is available.
mixed
ask(InputInterface $input, OutputInterface $output, Question $question)
Asks a question to the user.