class Variable in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/symfony/dependency-injection/Variable.php \Symfony\Component\DependencyInjection\Variable
- 8.0 core/lib/Drupal/Component/Utility/Variable.php \Drupal\Component\Utility\Variable
- 8.0 core/modules/migrate_drupal/src/Plugin/migrate/source/Variable.php \Drupal\migrate_drupal\Plugin\migrate\source\Variable
Same name and namespace in other branches
- 8 vendor/symfony/dependency-injection/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 vendor/
symfony/ dependency-injection/ Dumper/ PhpDumper.php
2 string references to 'Variable'
- contact.source.schema.yml in core/
modules/ contact/ config/ schema/ contact.source.schema.yml - core/modules/contact/config/schema/contact.source.schema.yml
- migrate_drupal.source.schema.yml in core/
modules/ migrate_drupal/ config/ schema/ migrate_drupal.source.schema.yml - core/modules/migrate_drupal/config/schema/migrate_drupal.source.schema.yml
File
- vendor/
symfony/ dependency-injection/ 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. |