mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 01:32:22 +01:00
15 lines
322 B
PHP
15 lines
322 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 visited object that makes this decision
|
|
*/
|
|
interface RoleVisitor
|
|
{
|
|
public function visitUser(User $role);
|
|
|
|
public function visitGroup(Group $role);
|
|
}
|