class DeprecatedArray extends ArrayObject (View source)

An array that triggers a deprecation warning when accessed.

Properties

protected string $message

The deprecation message.

Methods

__construct(array $values, $message)

DeprecatedArray constructor.

offsetExists($offset)

{@inheritdoc}

offsetGet($offset)

{@inheritdoc}

offsetSet($offset, $value)

{@inheritdoc}

offsetUnset($offset)

{@inheritdoc}

getIterator()

{@inheritdoc}

unserialize($serialized)

{@inheritdoc}

serialize()

{@inheritdoc}

count()

{@inheritdoc}

Details

__construct(array $values, $message)

DeprecatedArray constructor.

Parameters

array $values

The array values.

$message

The deprecation message.

offsetExists($offset)

{@inheritdoc}

Parameters

$offset

offsetGet($offset)

{@inheritdoc}

Parameters

$offset

offsetSet($offset, $value)

{@inheritdoc}

Parameters

$offset
$value

offsetUnset($offset)

{@inheritdoc}

Parameters

$offset

getIterator()

{@inheritdoc}

unserialize($serialized)

{@inheritdoc}

Parameters

$serialized

serialize()

{@inheritdoc}

count()

{@inheritdoc}