Overview

Namespaces

  • Contrib
    • Bundle
      • CoverallsBundle
        • Console
        • Entity
      • CoverallsV1Bundle
        • Api
        • Collector
        • Command
        • Config
        • Entity
          • Git
    • Component
      • File
      • Log
      • System
        • Git
  • Guzzle
    • Batch
      • Exception
    • Cache
    • Common
      • Exception
    • Http
      • Curl
      • Exception
      • Message
      • QueryAggregator
    • Inflection
    • Iterator
    • Log
    • Parser
      • Cookie
      • Message
      • UriTemplate
      • Url
    • Plugin
      • Async
      • Backoff
      • Cache
      • Cookie
        • CookieJar
        • Exception
      • CurlAuth
      • ErrorResponse
        • Exception
      • History
      • Log
      • Md5
      • Mock
      • Oauth
    • Service
      • Builder
      • Command
        • Factory
        • LocationVisitor
          • Request
          • Response
      • Description
      • Exception
      • Resource
    • Stream
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Config
        • Definition
          • Builder
          • Exception
        • Exception
        • Loader
        • Resource
        • Util
      • Console
        • Command
        • Formatter
        • Helper
        • Input
        • Output
        • Tester
      • EventDispatcher
        • Debug
      • Finder
        • Adapter
        • Comparator
        • Exception
        • Expression
        • Iterator
        • Shell
      • Stopwatch
      • Yaml
        • Exception

Classes

  • DialogHelper
  • FormatterHelper
  • Helper
  • HelperSet
  • ProgressHelper

Interfaces

  • HelperInterface
  • Overview
  • Namespace
  • Class
  • Tree
  • Todo

Class HelperSet

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

Namespace: Symfony\Component\Console\Helper
Author: Fabien Potencier <fabien@symfony.com>
Located at console/Symfony/Component/Console/Helper/HelperSet.php
Methods summary
public
# __construct( array $helpers = array() )

Constructor.

Constructor.

Parameters

$helpers
Symfony\Component\Console\Helper\Helper[]
$helpers An array of helper.
public
# set( Symfony\Component\Console\Helper\HelperInterface $helper, string $alias = null )

Sets a helper.

Sets a helper.

Parameters

$helper
Symfony\Component\Console\Helper\HelperInterface
$helper The helper instance
$alias
string
$alias An alias
public Boolean
# has( string $name )

Returns true if the helper if defined.

Returns true if the helper if defined.

Parameters

$name
string
$name The helper name

Returns

Boolean
true if the helper is defined, false otherwise
public Symfony\Component\Console\Helper\HelperInterface
# get( string $name )

Gets a helper value.

Gets a helper value.

Parameters

$name
string
$name The helper name

Returns

Symfony\Component\Console\Helper\HelperInterface
The helper instance

Throws

InvalidArgumentException
if the helper is not defined
public
# setCommand( Symfony\Component\Console\Command\Command $command = null )

Sets the command associated with this helper set.

Sets the command associated with this helper set.

Parameters

$command
Symfony\Component\Console\Command\Command
$command A Command instance
public Symfony\Component\Console\Command\Command
# getCommand( )

Gets the command associated with this helper set.

Gets the command associated with this helper set.

Returns

Symfony\Component\Console\Command\Command
A Command instance
php-coveralls API documentation generated by ApiGen 2.8.0