Documentation

HelperSet
in package
implements IteratorAggregate

HelperSet represents a set of helpers to be used with a command.

Tags
author

Fabien Potencier fabien@symfony.com

implements

\IteratorAggregate<string, Helper>

Interfaces, Classes, Traits and Enums

IteratorAggregate

Table of Contents

$command  : mixed
$helpers  : array<string, Helper>
__construct()  : mixed
get()  : HelperInterface
Gets a helper value.
getCommand()  : Command
Gets the command associated with this helper set.
getIterator()  : Traversable<string, Helper>
has()  : bool
Returns true if the helper if defined.
set()  : mixed
setCommand()  : mixed

Properties

Methods

__construct()

public __construct([array<string|int, Helper$helpers = [] ]) : mixed
Parameters
$helpers : array<string|int, Helper> = []

An array of helper

Return values
mixed

getCommand()

Gets the command associated with this helper set.

public getCommand() : Command
Tags
deprecated

since Symfony 5.4

Return values
Command

getIterator()

public getIterator() : Traversable<string, Helper>
Return values
Traversable<string, Helper>

has()

Returns true if the helper if defined.

public has(string $name) : bool
Parameters
$name : string
Return values
bool

setCommand()

public setCommand([Command $command = null ]) : mixed
Parameters
$command : Command = null
Tags
deprecated

since Symfony 5.4

Return values
mixed

Search results