SymfonyComponentConsoleHelperHelperSet

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

Summary

No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
N/A
File
vendorSymfonyComponentConsoleHelperHelperSet.php
Package
Default
Class hierarchy
SymfonyComponentConsoleHelperHelperSet

Tags

author

Fabien Potencier fabien@symfony.com

Properties

$helpers

$helpers : 

Type

Tags

None found

$command

$command : 

Type

Tags

None found

Methods

__construct()

__construct(array<mixed,\Symfony\Component\Console\Helper\Helper>  $helpers = array()) 

Constructor.

Parameters

array<mixed,SymfonyComponentConsoleHelperHelper> $helpers

An array of helper.

Tags

None found

set()

set(\Symfony\Component\Console\Helper\HelperInterface  $helper, string  $alias = null) 

Sets a helper.

Parameters

SymfonyComponentConsoleHelperHelperInterface $helper

The helper instance

string $alias

An alias

Tags

None found

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

Tags

None found

get()

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

Gets a helper value.

Parameters

string $name

The helper name

Throws

InvalidArgumentException

if the helper is not defined

Returns

SymfonyComponentConsoleHelperHelperInterface

The helper instance

Tags

None found

setCommand()

setCommand(\Symfony\Component\Console\Command\Command  $command = null) 

Sets the command associated with this helper set.

Parameters

SymfonyComponentConsoleCommandCommand $command

A Command instance

Tags

None found

getCommand()

getCommand() : \Symfony\Component\Console\Command\Command

Gets the command associated with this helper set.

Returns

SymfonyComponentConsoleCommandCommand

A Command instance

Tags

None found