added Visitor pattern

This commit is contained in:
Dominik Liebler
2012-09-01 11:05:56 +02:00
parent b5d9ed4ed3
commit 2dbd0cabac

View File

@@ -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);