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>

Table of Contents

Interfaces

IteratorAggregate

Properties

$helpers  : array<string, Helper>

Methods

__construct()  : mixed
get()  : HelperInterface
Gets a helper value.
getIterator()  : Traversable
has()  : bool
Returns true if the helper if defined.
set()  : mixed

Properties

Methods

__construct()

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

An array of helper

getIterator()

public getIterator() : Traversable
Return values
Traversable

has()

Returns true if the helper if defined.

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

        
On this page

Search results