mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 17:52:25 +01: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);
|
|
}
|