protected final function getPoolInstance () {
return $this->poolInstance;
}
+
+ /**
+ * 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('LISTENER: ' . $visitorInstance->__toString() . ' has visited - START');
+
+ // Visit this listener
+ $visitorInstance->visitListener($this);
+
+ // Visit the pool
+ $this->getPoolInstance()->accept($visitor);
+
+ // Debug message
+ $this->debugOutput('LISTENER: ' . $visitorInstance->__toString() . ' has visited - FINISHED');
+ }
}
// [EOF]