cspray/SprayFire — Issue #18: Object Set Interface
Author: cspray
Created: 2011-12-24 06:08:50+00:00
State: open
Labels: roadmap

An interface to store a set of objects should satisfy the following requirements:

- Require a `ReflectionClass` object to be passed in the `__construct()`. This object will determine the type of class or interface allowed to be stored in the given set.
- Allow an object to be added
- Allow an object to be removed
- Allow the index of an object to be attained
- Allow for the size of the data structure to be returned
- Allow for a method to determine if a given object exists in the structure
- Only allow framework objects implementing the Object interface to be stored