mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-28 10:40:17 +02:00
15 lines
298 B
PHP
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);
|
|
}
|