\Symfony\Component\Console\HelperHelperSet

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

Summary

Methods
Properties
Constants
__construct()
set()
has()
get()
setCommand()
getCommand()
getIterator()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$helpers
$command
N/A

Properties

$command

$command : 

Type

Methods

has()

has(string  $name) : boolean

Returns true if the helper if defined.

Parameters

string $name

The helper name

Returns

boolean —

true if the helper is defined, false otherwise

get()

get(string  $name) : \Symfony\Component\Console\Helper\HelperInterface

Gets a helper value.

Parameters

string $name

The helper name

Throws

\Symfony\Component\Console\Exception\InvalidArgumentException

if the helper is not defined

Returns

\Symfony\Component\Console\Helper\HelperInterface

The helper instance