$helpers
$helpers : array<mixed,\Symfony\Component\Console\Helper\Helper>
HelperSet represents a set of helpers to be used with a command.
$helpers : array<mixed,\Symfony\Component\Console\Helper\Helper>
__construct(array<mixed,\Symfony\Component\Console\Helper\Helper> $helpers = array())
array<mixed,\Symfony\Component\Console\Helper\Helper> | $helpers | An array of helper |
set(\Symfony\Component\Console\Helper\HelperInterface $helper, string $alias = null)
Sets a helper.
\Symfony\Component\Console\Helper\HelperInterface | $helper | The helper instance |
string | $alias | An alias |
get(string $name) : \Symfony\Component\Console\Helper\HelperInterface
Gets a helper value.
string | $name | The helper name |
if the helper is not defined
The helper instance
setCommand(\Symfony\Component\Console\Command\Command $command = null)
\Symfony\Component\Console\Command\Command | $command |
getCommand() : \Symfony\Component\Console\Command\Command
Gets the command associated with this helper set.
A Command instance
getIterator() : array<mixed,\Symfony\Component\Console\Helper\Helper>