X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=application%2Fhub%2Fmain%2Fpools%2Fclass_BasePool.php;h=efa9aa9da21c325be497c96c860477499129fa51;hb=7aa496666dd1d41fc58dc9bbacd1e9877ed875a7;hp=a5b711738637e1b112725a10081964f13d869e30;hpb=593bba9f786239a0bd2d18562f509e6fd35bdfd6;p=hub.git diff --git a/application/hub/main/pools/class_BasePool.php b/application/hub/main/pools/class_BasePool.php index a5b711738..efa9aa9da 100644 --- a/application/hub/main/pools/class_BasePool.php +++ b/application/hub/main/pools/class_BasePool.php @@ -23,9 +23,9 @@ */ class BasePool extends BaseHubSystem { /** - * A list of instances for this pool + * A list of pool entries */ - private $instancePool = array(); + private $poolEntries = array(); /** * Protected constructor @@ -41,12 +41,24 @@ class BasePool extends BaseHubSystem { /** * 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; } }