class SymfonyQuestionHelper extends QuestionHelper
Symfony Style Guide compliant question helper.
Methods
setHelperSet(HelperSet $helperSet = null) Sets the helper set associated with this helper. | from Helper | |
HelperSet | getHelperSet() Gets the helper set associated with this helper. | from Helper |
static int | strlen(string $string) Returns the length of a string, using mb_strwidth if it is available. | from Helper |
static | formatTime($secs) | from Helper |
static | formatMemory($memory) | from Helper |
static | strlenWithoutDecoration(OutputFormatterInterface $formatter, $string) | from Helper |
string | ask(InputInterface $input, OutputInterface $output, Question $question) Asks a question to the user. | |
setInputStream(resource $stream) Sets the input stream to read from when interacting with the user. | from QuestionHelper | |
resource | getInputStream() Returns the helper's input stream. | from QuestionHelper |
string | getName() Returns the canonical name of this helper. | from QuestionHelper |
Details
setHelperSet(HelperSet $helperSet = null)
Sets the helper set associated with this helper.
HelperSet getHelperSet()
Gets the helper set associated with this helper.
static int strlen(string $string)
Returns the length of a string, using mb_strwidth if it is available.
static formatTime($secs)
static formatMemory($memory)
static strlenWithoutDecoration(OutputFormatterInterface $formatter, $string)
string ask(InputInterface $input, OutputInterface $output, Question $question)
Asks a question to the user.
setInputStream(resource $stream)
Sets the input stream to read from when interacting with the user.
This is mainly useful for testing purpose.
resource getInputStream()
Returns the helper's input stream.
string getName()
Returns the canonical name of this helper.
Please login to continue.