This package is abandoned and no longer maintained. No replacement package was suggested.

An object store for specific objects.

1.0.0 2013-06-19 18:44 UTC

This package is not auto-updated.

Last update: 2021-12-07 01:34:54 UTC


Build Status

A simple object storage class that will only allow "supported" objects.

class MyObjectStorage extends Herrera\Util\ObjectStorage
    public function isSupported($object)
        return ($object instanceof PDO);

$store = new MyObjectStorage();
$pdo = new PDO('dsn...');
$time = new DateTime();

$store->attach($time); // throws "UnexpectedValueException"