You are here

class Parameter in Service Container 7.2

Same name and namespace in other branches
  1. 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Parameter.php \Symfony\Component\DependencyInjection\Parameter

Parameter represents a parameter reference.

@author Fabien Potencier <fabien@symfony.com>

@api

Hierarchy

  • class \Symfony\Component\DependencyInjection\Parameter

Expanded class hierarchy of Parameter

8 files declare their use of Parameter
container9.php in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/containers/container9.php
GraphvizDumper.php in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Dumper/GraphvizDumper.php
OptimizedPhpArrayDumper.php in lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php
Contains \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper.
ParameterTest.php in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/ParameterTest.php
PhpArrayDumper.php in lib/Drupal/Core/DependencyInjection/Dumper/PhpArrayDumper.php
Contains \Drupal\Core\DependencyInjection\Dumper\PhpArrayDumper

... See full list

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Parameter.php, line 21

Namespace

Symfony\Component\DependencyInjection
View source
class Parameter {
  private $id;

  /**
   * Constructor.
   *
   * @param string $id The parameter key
   */
  public function __construct($id) {
    $this->id = $id;
  }

  /**
   * __toString.
   *
   * @return string The parameter key
   */
  public function __toString() {
    return (string) $this->id;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Parameter::$id private property
Parameter::__construct public function Constructor.
Parameter::__toString public function __toString.