ArrayAccessTrait
trait ArrayAccessTrait
Encapsulates common logic for classes which implement the SPL \ArrayAccess interface.
Methods
offsetSet
(string $offset, mixed $value)
Sets an internal key with a value.
offsetExists
(string $offset)
: bool
Checks whether an internal key exists.
offsetUnset
(string $offset)
Unsets an internal key.
offsetGet
(string $offset)
: mixed|null
Retrieves an internal key.