class Scope
| __construct(Scope $parent = null) | ||
| Scope | enter() Opens a new child scope. | |
| Scope|null | leave() Closes current scope and returns parent one. | |
| $this | set(string $key, mixed $value) Stores data into current scope. | |
| bool | has(string $key) Tests if a data is visible from current scope. | |
| mixed | get(string $key, mixed $default = null) Returns data visible from current scope. |
| Scope | $parent |
Opens a new child scope.
| Scope |
Closes current scope and returns parent one.
| Scope|null |
Stores data into current scope.
| string | $key | |
| mixed | $value |
| $this |
| LogicException |
Tests if a data is visible from current scope.
| string | $key |
| bool |
Returns data visible from current scope.
| string | $key | |
| mixed | $default |
| mixed |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Bridge/Twig/NodeVisitor/Scope.html