From: Roland Häder Date: Wed, 20 Apr 2011 01:52:56 +0000 (+0000) Subject: Visitor instances can now be stored in all objects for speeding up the code. X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=f714ea9c70eebbb5a7687d8d871f52050c66e220;hp=33779a34a2a112c3a9a2447ed0a17d296c49b244 Visitor instances can now be stored in all objects for speeding up the code. --- diff --git a/inc/classes/main/class_BaseFrameworkSystem.php b/inc/classes/main/class_BaseFrameworkSystem.php index 9c1cf4ca..e34ebe98 100644 --- a/inc/classes/main/class_BaseFrameworkSystem.php +++ b/inc/classes/main/class_BaseFrameworkSystem.php @@ -153,6 +153,11 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { */ private $handlerInstance = null; + /** + * Visitor handler instance + */ + private $visitorInstance = null; + /** * The real class name */ @@ -1642,6 +1647,25 @@ class BaseFrameworkSystem extends stdClass implements FrameworkInterface { return $this->handlerInstance; } + /** + * Setter for visitor instance + * + * @param $visitorInstance A Visitor instance + * @return void + */ + protected final function setVisitorInstance (Visitor $visitorInstance) { + $this->visitorInstance = $visitorInstance; + } + + /** + * Getter for visitor instance + * + * @return $visitorInstance A Visitor instance + */ + protected final function getVisitorInstance () { + return $this->visitorInstance; + } + /** * Setter for raw package Data *