From 2dbd0cabac340d2e660c359fc4dcc7ae595913ee Mon Sep 17 00:00:00 2001 From: Dominik Liebler Date: Sat, 1 Sep 2012 11:05:56 +0200 Subject: [PATCH] added Visitor pattern --- Visitor/Visitor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Visitor/Visitor.php b/Visitor/Visitor.php index 9ad5dc8..57ebe90 100644 --- a/Visitor/Visitor.php +++ b/Visitor/Visitor.php @@ -8,7 +8,7 @@ namespace DesignPatterns; * Purpose: * The Visitor Pattern lets you outsource operations on objects to other objects. The main reason to do this is to keep * a seperation of concerns. But classes have to define an interface to allow visitors (the "accept" method in the example below). - * + * */ interface RoleVisitor { public function visit(Role $role);