lbacik/object-collection

Object collection based on SPL ArrayObject class

Maintainers

Package info

github.com/lbacik/object-collection

pkg:composer/lbacik/object-collection

Statistics

Installs: 209

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1 2022-09-28 16:45 UTC

This package is not auto-updated.

Last update: 2026-03-13 07:10:45 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'),
]);