lbacik / object-collection
Object collection based on SPL ArrayObject class
v0.1
2022-09-28 16:45 UTC
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is not auto-updated.
Last update: 2024-10-11 00:47:33 UTC
README
Install with composer:
composer require lbacik/object-collection
Example
Declaration
use App\MyObject; use Sushi\ObjectCollection class MyObjectCollection extends ObjectCollection { static string $type = MyObject::class; }
Usage
$myCollection = new MyObjectCollection([ new MyObject('foo'), new MyObject('bar'), ]);