]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/listener/class_BaseListenerDecorator.php
Exceptions, interfaces and many classes added/rewritten:
[hub.git] / application / hub / main / listener / class_BaseListenerDecorator.php
index fd0a3f2b102b69a143c16f8e1fe9b729b5f73e92..fe412f7aa74a78a38dffeb4b3af82f596d371d61 100644 (file)
@@ -63,6 +63,26 @@ class BaseListenerDecorator extends BaseHubSystem implements Visitable {
        public final function getProtocol () {
                return $this->getListenerInstance()->getProtocol();
        }
+
+       /**
+        * Accepts the visitor to rpocess the visit "request"
+        *
+        * @param       $visitorInstance        An instance of a Visitor class
+        * @return      void
+        */
+       public function accept (Visitor $visitorInstance) {
+               // Debug message
+               $this->debugOutput('DECO-LISTENER: ' . $visitorInstance->__toString() . ' has visited - START');
+
+               // Visit this decorator
+               $visitorInstance->visitDecorator($this);
+
+               // Visit the covered class
+               $this->getListenerInstance()->accept($visitorInstance);
+
+               // Debug message
+               $this->debugOutput('DECO-LISTENER: ' . $visitorInstance->__toString() . ' has visited - FINISHED');
+       }
 }
 
 // [EOF]