hepplerdotnet/arrayaccess

Trait to implement ArrayAccess

1.0 2017-09-08 11:28 UTC

This package is auto-updated.

Last update: 2024-09-26 03:10:58 UTC


README

PHP Trait to implement ArrayAccess

Installation

First, pull in the package through Composer.

Run composer require hepplerdotnet/arrayaccess

And then include the Trait within your Class to implement ArrayAccess.

class Foo implements \ArrayAccess
{
use \HepplerDotNet\ArrayAccess\ArrayAccess;
...
}

That's it, your Class can now use ArrayAccess.