Files
DesignPatternsPHP/Behavioral/Visitor/RoleVisitor.php
2019-08-19 18:11:49 +02:00

15 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);
}