Scope

Scope

class Scope

Methods

__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 登录查看完整内容