\Box\Brainy\RuntimeOverlayScope

Summary

Methods
Properties
Constants
__construct()
offsetSet()
offsetExists()
offsetUnset()
offsetGet()
getIterator()
No public properties found
MISS_LIMIT
No protected methods found
$overlaid
$base
$written
$flattened
$misses
$arrayIteratorCache
N/A
flatten()
No private properties found
N/A

Constants

MISS_LIMIT

MISS_LIMIT

Properties

$overlaid

$overlaid : 

Type

$base

$base : 

Type

$written

$written : 

Type

$flattened

$flattened : 

Type

$misses

$misses : 

Type

$arrayIteratorCache

$arrayIteratorCache : 

Type

Methods

__construct()

__construct(  $base) 

Parameters

$base

offsetSet()

offsetSet(string|integer  $offset, mixed  $value) : void

Set the value of a variable in the scope

Parameters

string|integer $offset
mixed $value

offsetExists()

offsetExists(string|integer  $offset) : boolean

Test if a value exists

Parameters

string|integer $offset

Returns

boolean

offsetUnset()

offsetUnset(string|integer  $offset) : void

Remove a value that exists

Parameters

string|integer $offset

offsetGet()

offsetGet(string|integer  $offset) : \Box\Brainy\Templates\Variable|null

Return a value from the scope

Parameters

string|integer $offset

Returns

\Box\Brainy\Templates\Variable|null

getIterator()

getIterator() : \Traversable

Return an iterator representing the scope's context

Returns

\Traversable

flatten()

flatten() : void

Flattens the scope