SymfonyQuestionHelper
class SymfonyQuestionHelper extends QuestionHelper
Symfony Style Guide compliant question 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
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
bool|mixed|null|string
from QuestionHelper
Details
in Helper at line line 30
setHelperSet(HelperSet $helperSet = null)
Sets the helper set associated with this helper.
in Helper at line line 52
static int
strlen(string $string)
Returns the length of a string, using mb_strwidth if it is available.
in Helper at line line 61
static
formatTime($secs)
in Helper at line line 88
static
formatMemory($memory)
in Helper at line line 105
static
strlenWithoutDecoration(OutputFormatterInterface $formatter, $string)
at line line 32
string
ask(InputInterface $input, OutputInterface $output, Question $question)
Asks a question to the user.
in QuestionHelper at line line 77
setInputStream(resource $stream)
Sets the input stream to read from when interacting with the user.
This is mainly useful for testing purpose.
in QuestionHelper at line line 91
resource
getInputStream()
Returns the helper's input stream.
in QuestionHelper at line line 99
string
getName()
Returns the canonical name of this helper.
in QuestionHelper at line line 117
bool|mixed|null|string
doAsk(OutputInterface $output, Question $question)
Asks the question to the user.
This method is public for PHP 5.3 compatibility, it should be private.