]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/listener/class_BaseListenerDecorator.php
State pattern classes for node states added, factory added, copyright updated
[hub.git] / application / hub / main / listener / class_BaseListenerDecorator.php
index dcf284649d2e9e649cd9a7e6ff25197e28769c1d..5b9889e202c4d663c5d8003fd21f2dd0d5325444 100644 (file)
@@ -4,7 +4,7 @@
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
- * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009 Hub Developer Team
+ * @copyright  Copyright (c) 2007, 2008 Roland Haeder, 2009, 2010 Hub Developer Team
  * @license            GNU GPL 3.0 or any newer version
  * @link               http://www.ship-simu.org
  *
@@ -61,7 +61,7 @@ class BaseListenerDecorator extends BaseDecorator implements Visitable {
        }
 
        /**
-        * Accepts the visitor to rpocess the visit "request"
+        * Accepts the visitor to process the visit "request"
         *
         * @param       $visitorInstance        An instance of a Visitor class
         * @return      void
@@ -71,7 +71,7 @@ class BaseListenerDecorator extends BaseDecorator implements Visitable {
                $visitorInstance->visitDecorator($this);
 
                // Visit the covered class
-               $visitorInstance->visitListener($this);
+               $visitorInstance->visitListener($this->getListenerInstance());
        }
 }