Since: 1.16.0

final class PackedArray implements ArrayAccess, IteratorAggregate, Serializable (View source)

Methods

static PackedArray
fromJSON(string $json)

No description

static PackedArray
fromPHP(array $value)

No description

mixed
get(int $index)

No description

getIterator()

Retrieve an external iterator

bool
has(int $index)

No description

array|object
toPHP(array|null $typeMap = null)

No description

string
toCanonicalExtendedJSON()

No description

string
toRelaxedExtendedJSON()

No description

bool
offsetExists(TKey $offset)

No description

mixed
offsetGet(TKey $offset)

No description

void
offsetSet(TKey $offset, TValue $value)

No description

void
offsetUnset(TKey $offset)

No description

string
__toString()

No description

static PackedArray
__set_state(array $properties)

No description

string|null
serialize()

String representation of object.

void
unserialize(string $data)

Constructs the object.

void
__unserialize(array $data)

No description

array
__serialize()

No description

Details

final static PackedArray fromJSON(string $json)

Since: 1.20.0

No description

Parameters

string $json

Return Value

PackedArray

final static PackedArray fromPHP(array $value)

No description

Parameters

array $value

Return Value

PackedArray

final mixed get(int $index)

No description

Parameters

int $index

Return Value

mixed

final Traversable getIterator()

Retrieve an external iterator

Return Value

Traversable

An instance of an object implementing Iterator or Traversable

Exceptions

Exception

final bool has(int $index)

No description

Parameters

int $index

Return Value

bool

final array|object toPHP(array|null $typeMap = null)

No description

Parameters

array|null $typeMap

Return Value

array|object

final string toCanonicalExtendedJSON()

Since: 1.20.0

No description

Return Value

string

final string toRelaxedExtendedJSON()

Since: 1.20.0

No description

Return Value

string

bool offsetExists(TKey $offset)

Since: 1.17.0

No description

Parameters

TKey $offset

An offset to check for.

Return Value

bool

true on success or false on failure.

The return value will be casted to boolean if non-boolean was returned.

mixed offsetGet(TKey $offset)

Since: 1.17.0

No description

Parameters

TKey $offset

The offset to retrieve.

Return Value

mixed

Can return all value types.

void offsetSet(TKey $offset, TValue $value)

Since: 1.17.0

No description

Parameters

TKey $offset

The offset to assign the value to.

TValue $value

The value to set.

Return Value

void

void offsetUnset(TKey $offset)

Since: 1.17.0

No description

Parameters

TKey $offset

The offset to unset.

Return Value

void

final string __toString()

No description

Return Value

string

final static PackedArray __set_state(array $properties)

No description

Parameters

array $properties

Return Value

PackedArray

final string|null serialize()

String representation of object.

Return Value

string|null

The string representation of the object or null

Exceptions

Exception

final void unserialize(string $data)

Constructs the object.

Parameters

string $data

The string representation of the object.

Return Value

void

final void __unserialize(array $data)

No description

Parameters

array $data

Return Value

void

final array __serialize()

No description

Return Value

array