]> git.mxchange.org Git - hub.git/blobdiff - application/hub/interfaces/visitor/class_Visitable.php
Exceptions, interfaces and many classes added/rewritten:
[hub.git] / application / hub / interfaces / visitor / class_Visitable.php
index f91e448a4f063b3b05315cc04762295be4afbd9e..8319c3163bd34394cf7852f17b1de865864070e8 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * An interface for the visitor pattern
+ * An interface for a visitable class that 'accepts' visitors
  *
  * @author             Roland Haeder <webmaster@ship-simu.org>
  * @version            0.0.0
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
  */
 interface Visitable extends FrameworkInterface {
+       /**
+        * Accepts the visitor to rpocess the visit "request"
+        *
+        * @param       $visitorInstance        An instance of a Visitor class
+        * @return      void
+        */
+       function accept (Visitor $visitorInstance);
 }
 
 //