W3cubDocs

/Symfony 4.1

Variable

class Variable

Represents a variable.

$var = new Variable('a');

will be dumped as

$a

by the PHP dumper.

Methods

__construct(string $name)
__toString()

Details

__construct(string $name)

Parameters

string $name

__toString()

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/DependencyInjection/Variable.html