Files
DesignPatternsPHP/Behavioral/Visitor/RoleVisitorInterface.php
2019-08-17 21:58:04 +02:00

16 lines
323 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 RoleVisitorInterface
{
public function visitUser(User $role);
public function visitGroup(Group $role);
}