Files
DesignPatternsPHP/Behavioral/Visitor/RoleVisitor.php
2019-08-19 17:08:38 +02:00

16 lines
314 B
PHP

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