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,16 +5,22 @@ namespace DesignPatterns\Visitor;
/**
* Visitor Pattern
*
* An implementation of a Visitor
* An implementation of a concrete Visitor
*/
class RolePrintVisitor implements RoleVisitor
{
/**
* @inheritdoc
*/
public function visitGroup(Group $role)
{
echo "Role: " . $role->getName();
}
/**
* @inheritdoc
*/
public function visitUser(User $role)
{
echo "Role: " . $role->getName();