Added getter/setter for a Register instance (registries)
authorRoland Häder <roland@mxchange.org>
Sat, 1 Jul 2017 20:12:38 +0000 (22:12 +0200)
committerRoland Häder <roland@mxchange.org>
Sat, 1 Jul 2017 20:12:38 +0000 (22:12 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
framework/main/classes/class_BaseFrameworkSystem.php

index 1ab419f..69bcba9 100644 (file)
@@ -258,6 +258,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        private $stateInstance = NULL;
 
        /**
+        * Registry instance (implementing Register)
+        */
+       private $registryInstance = NULL;
+
+       /**
         * Thousands separator
         */
        private $thousands = '.'; // German
@@ -1528,6 +1533,25 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
        }
 
        /**
+        * Setter for registry instance
+        *
+        * @param       $registryInstance               An instance of a Register class
+        * @return      void
+        */
+       protected final function setRegistryInstance (Register $registryInstance) {
+               $this->registryInstance = $registryInstance;
+       }
+
+       /**
+        * Getter for registry instance
+        *
+        * @return      $registryInstance       The debug registry instance
+        */
+       public final function getRegistryInstance () {
+               return $this->registryInstance;
+       }
+
+       /**
         * Setter for command name
         *
         * @param       $commandName    Last validated command name