DesignPatternsPHP/Behavioral/Visitor/RoleVisitorInterface.php
Dominik Liebler 1c30978a70 PHP7 Visitor
2016-09-22 11:29:48 +02:00

15 lines
298 B
PHP

<?php
namespace DesignPatterns\Behavioral\Visitor;
/**
* Note: the visitor must not choose itself which method to
* invoke, it is the Visitee that make this decision
*/
interface RoleVisitorInterface
{
public function visitUser(User $role);
public function visitGroup(Group $role);
}