class HelperSet implements IteratorAggregate
HelperSet represents a set of helpers to be used with a command.
Methods
| __construct(array $helpers = array()) Constructor. | ||
| set(HelperInterface $helper, string $alias = null) Sets a helper. | ||
| bool | has(string $name) Returns true if the helper if defined. | |
| HelperInterface | get(string $name) Gets a helper value. | |
| setCommand(Command $command = null) Sets the command associated with this helper set. | ||
| Command | getCommand() Gets the command associated with this helper set. | |
| Helper[] | getIterator() |
Details
__construct(array $helpers = array())
Constructor.
set(HelperInterface $helper, string $alias = null)
Sets a helper.
bool has(string $name)
Returns true if the helper if defined.
HelperInterface get(string $name)
Gets a helper value.
setCommand(Command $command = null)
Sets the command associated with this helper set.
Command getCommand()
Gets the command associated with this helper set.
Please login to continue.