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

Table of Contents

Interfaces

IteratorAggregate

Properties

$command  : mixed
$helpers  : array<string|int, Helper>

Methods

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

Properties

Methods

__construct()

Constructor.

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

An array of helper

getCommand()

Gets the command associated with this helper set.

public getCommand() : Command
Return values
Command

A Command instance

has()

Returns true if the helper if defined.

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

The helper name

Return values
bool

true if the helper is defined, false otherwise

setCommand()

Sets the command associated with this helper set.

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

A Command instance


        
On this page

Search results