]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/pools/class_BasePool.php
More filters for bootstrapping added
[hub.git] / application / hub / main / pools / class_BasePool.php
index a5b711738637e1b112725a10081964f13d869e30..efa9aa9da21c325be497c96c860477499129fa51 100644 (file)
@@ -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;
        }
 }