*/
class BasePool extends BaseHubSystem {
/**
- * A list of instances for this pool
+ * A list of pool entries
*/
- private $instancePool = array();
+ private $poolEntries = array();
/**
* Protected constructor
/**
* Adds an instance to a pool segment
*
+ * @param $group Name of the pool group
* @param $poolSegment Name of the pool segment
* @param $instance An instance of a class we should add to the pool
* @return void
+ * @todo Can we use Listenable instead of FrameworkInterface ?
*/
protected final function addInstance($group, $poolName, FrameworkInterface $instance) {
- $this->instancePool[$group][$poolName][] = $instance;
+ $this->poolEntries[$group][$poolName][] = $instance;
+ }
+
+ /**
+ * Adds an entry to the pool
+ *
+ * @param $poolEntry The new pool entry we should add
+ * @return void
+ */
+ protected final function addPoolEntry ($poolEntry) {
+ $this->poolEntries[] = $poolEntry;
}
}