class Variable in Service Container 7.2
Same name in this branch
- 7.2 src/Variable.php \Drupal\service_container\Variable
- 7.2 lib/Drupal/Component/Utility/Variable.php \Drupal\Component\Utility\Variable
- 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Variable.php \Symfony\Component\DependencyInjection\Variable
Same name and namespace in other branches
- 7 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Variable.php \Symfony\Component\DependencyInjection\Variable
Represents a variable.
$var = new Variable('a');
will be dumped as
$a
by the PHP dumper.
@author Johannes M. Schmitt <schmittjoh@gmail.com>
Hierarchy
- class \Symfony\Component\DependencyInjection\Variable
Expanded class hierarchy of Variable
1 file declares its use of Variable
- PhpDumper.php in modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Dumper/ PhpDumper.php
File
- modules/
providers/ service_container_symfony/ lib/ Symfony/ Component/ DependencyInjection/ Variable.php, line 27
Namespace
Symfony\Component\DependencyInjectionView source
class Variable {
private $name;
/**
* Constructor.
*
* @param string $name
*/
public function __construct($name) {
$this->name = $name;
}
/**
* Converts the object to a string.
*
* @return string
*/
public function __toString() {
return $this->name;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Variable:: |
private | property | ||
Variable:: |
public | function | Constructor. | |
Variable:: |
public | function | Converts the object to a string. |