W3cubDocs

/Symfony 3.1

Variable

class Variable

Represents a variable.

$var = new Variable('a');

will be dumped as

$a

by the PHP dumper.

Methods

__construct(string $name)
string __toString()

Converts the object to a string.

Details

__construct(string $name)

Parameters

string $name

string __toString()

Converts the object to a string.

Return Value

string

© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/DependencyInjection/Variable.html