mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-25 22:09:23 +02:00
16 lines
323 B
PHP
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);
|
|
}
|