You are here

class Parameter in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/dependency-injection/Parameter.php \Symfony\Component\DependencyInjection\Parameter

Parameter represents a parameter reference.

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

  • class \Symfony\Component\DependencyInjection\Parameter

Expanded class hierarchy of Parameter

9 files declare their use of Parameter
container9.php in vendor/symfony/dependency-injection/Tests/Fixtures/containers/container9.php
GraphvizDumper.php in vendor/symfony/dependency-injection/Dumper/GraphvizDumper.php
KernelTestBase.php in core/modules/simpletest/src/KernelTestBase.php
Contains \Drupal\simpletest\KernelTestBase.
OptimizedPhpArrayDumper.php in core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php
Contains \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper.
OptimizedPhpArrayDumperTest.php in core/tests/Drupal/Tests/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumperTest.php
Contains \Drupal\Tests\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumperTest.

... See full list

File

vendor/symfony/dependency-injection/Parameter.php, line 19

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.