From: Roland Häder Date: Sat, 1 Jul 2017 20:12:38 +0000 (+0200) Subject: Added getter/setter for a Register instance (registries) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6baa6703080c850668eeb1cf78df1d6c6c4c5d7e;p=core.git Added getter/setter for a Register instance (registries) Signed-off-by: Roland Häder --- diff --git a/framework/main/classes/class_BaseFrameworkSystem.php b/framework/main/classes/class_BaseFrameworkSystem.php index 1ab419f5..69bcba95 100644 --- a/framework/main/classes/class_BaseFrameworkSystem.php +++ b/framework/main/classes/class_BaseFrameworkSystem.php @@ -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 *