• PHP reference
  • Helpers

ArrayAccessibleObject

class Core\Support\ArrayAccessibleObject implements ArrayAccess

Implements ArrayAccess on arbitrary objects with a $data field.

Properties

array $data

Data.

Methods

mixed __get(string $key)

Get a data by key.

Parameters

  • string $key The key data to retrieve

Return Value

  • mixed

__set(string $key, mixed $value)

Assigns a value to the specified data.

Parameters

  • string $key The data key to assign the value to
  • mixed $value The value to set

boolean __isset(string $key)

Whether or not an data exists by key.

Parameters

  • string $key An data key to check for

Return Value

  • boolean

__unset(string $key)

Un-sets an data by key.

Parameters

  • string $key The key to unset

offsetSet(string $offset, mixed $value)

Assigns a value to the specified offset.

Parameters

  • string $offset The offset to assign the value to
  • mixed $value The value to set

boolean offsetExists(string $offset)

Whether or not an offset exists.

Parameters

  • string $offset An offset to check for

Return Value

  • boolean

offsetUnset(string $offset)

Un-sets an offset.

Parameters

  • string $offset The offset to unset

mixed offsetGet(string $offset)

Returns the value at specified offset.

Parameters

  • string $offset The offset to retrieve

Return Value

  • mixed