Scope
class Scope
Methods
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.
Details
at line line 37
__construct(Scope $parent = null)
at line line 47
Scope
enter()
Opens a new child scope.
at line line 57
Scope|null
leave()
Closes current scope and returns parent one.
at line line 74
Scope
set(string $key, mixed $value)
Stores data into current scope.
at line line 92
bool
has(string $key)
Tests if a data is visible from current scope.
at line line 113
mixed
get(string $key, mixed $default = null)
Returns data visible from current scope.