NullArrayBasedLazyMap
in package
Simple classical array-based map - used to simulate the overhead of a classical array-based solution
Tags
Table of Contents
- $items : array<string|int, mixed>
- get() : mixed
- Lazy getter - retrieves or instantiates a key in the map
- instantiate() : mixed
- Null instantiator, emulates same overhead of an {@see \LazyMapTestAsset\NullLazyMap}
Properties
$items
private
array<string|int, mixed>
$items
= array()
Methods
get()
Lazy getter - retrieves or instantiates a key in the map
public
get(string $name) : mixed
Parameters
- $name : string
Return values
mixed —instantiate()
Null instantiator, emulates same overhead of an {@see \LazyMapTestAsset\NullLazyMap}
protected
instantiate(mixed $name) : mixed
Parameters
- $name : mixed