MixedStore
in package
implements
ArrayAccess
Similar to PHP array, but allows any type of data to act as key (including arrays, objects, scalars).
When storing array as key, access and modification is O(N). Avoid if possible.
Tags
Interfaces, Classes and Traits
- ArrayAccess
Table of Contents
- $arrayKeys : array<string|int, mixed>
- $arrayValues : array<string|int, mixed>
- $falseValue : TValue|null
- $falseValueIsSet : bool
- $floatStore : array<string|int, mixed>
- $lastArrayKey : array<string|int, mixed>|null
- $lastArrayValue : TValue|null
- $nullValue : TValue|null
- $nullValueIsSet : bool
- $objectStore : SplObjectStorage
- $standardStore : array<string|int, mixed>
- $trueValue : TValue|null
- $trueValueIsSet : bool
- __construct() : mixed
- offsetExists() : bool
- offsetGet() : TValue|null
- offsetSet() : void
- offsetUnset() : void
Properties
$arrayKeys
private
array<string|int, mixed>
$arrayKeys
= []
$arrayValues
private
array<string|int, mixed>
$arrayValues
= []
$falseValue
private
TValue|null
$falseValue
$falseValueIsSet
private
bool
$falseValueIsSet
= false
$floatStore
private
array<string|int, mixed>
$floatStore
= []
$lastArrayKey
private
array<string|int, mixed>|null
$lastArrayKey
= null
$lastArrayValue
private
TValue|null
$lastArrayValue
$nullValue
private
TValue|null
$nullValue
$nullValueIsSet
private
bool
$nullValueIsSet
= false
$objectStore
private
SplObjectStorage
$objectStore
$standardStore
private
array<string|int, mixed>
$standardStore
= []
$trueValue
private
TValue|null
$trueValue
$trueValueIsSet
private
bool
$trueValueIsSet
= false
Methods
__construct()
public
__construct() : mixed
Return values
mixed —offsetExists()
public
offsetExists(mixed $offset) : bool
Parameters
- $offset : mixed
Return values
bool —offsetGet()
public
offsetGet(mixed $offset) : TValue|null
Parameters
- $offset : mixed
Return values
TValue|null —offsetSet()
public
offsetSet(mixed $offset, TValue $value) : void
Parameters
- $offset : mixed
- $value : TValue
Tags
Return values
void —offsetUnset()
public
offsetUnset(mixed $offset) : void
Parameters
- $offset : mixed
