]> git.mxchange.org Git - core.git/commitdiff
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 1ab419f52db8b55e17d1bbabfb091016cf6c2f18..69bcba9595a08def54ed08771f72260c1ec294b5 100644 (file)
@@ -257,6 +257,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
         */
        private $stateInstance = NULL;
 
+       /**
+        * Registry instance (implementing Register)
+        */
+       private $registryInstance = NULL;
+
        /**
         * Thousands separator
         */
@@ -1527,6 +1532,25 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface {
                return $this->outputInstance;
        }
 
+       /**
+        * 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
         *