documentation (commiting now from Guadeloupe)

This commit is contained in:
Trismegiste
2013-08-17 19:41:18 -04:00
parent 9a2536bc56
commit 67bdb9fede
3 changed files with 18 additions and 5 deletions

View File

@@ -5,13 +5,19 @@ namespace DesignPatterns\Visitor;
/**
* Visitor Pattern
*
* The contract for the visitor
* The contract for the visitor.
*
* Note 1 : in C++ or java, with method polymorphism based on type-hint, there are many
* methods visit() with different type for the 'role' parameter.
*
* Note 2 : the visitor must not choose itself which method to
* invoke, it is the Visitee that make this decision.
*/
interface RoleVisitor
{
/**
* Visit a user object
* Visit a User object
*
* @param \DesignPatterns\Visitor\User $role
*/