- public function visitPool (Poolable $poolInstance) {
- // We don't need to visit a pool as an active task because a pool can
- // never become a task.
+ public function visitListener (Listenable $listenerInstance) {
+ // Do "listen" here
+ //* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('VISITOR: Visiting ' . $listenerInstance->__toString() . ' - START');
+ $listenerInstance->doListen();
+ //* DEBUG: */ self::createDebugInstance(__CLASS__)->debugOutput('VISITOR: Visiting ' . $listenerInstance->__toString() . ' - FINISH');
+ }
+
+ /**
+ * Visits the given decorator instance
+ *
+ * @param $decoratorInstance A decorator instance
+ * @return void
+ */
+ public function visitDecorator (BaseDecorator $decoratorInstance) {
+ // A decorator itself can never become an active task so this method
+ // remains empty.