remove Interface-Suffix

This commit is contained in:
Dominik Liebler
2019-08-19 17:07:39 +02:00
parent 27bd89dd63
commit 9cb7660704
9 changed files with 49 additions and 49 deletions

View File

@@ -3,28 +3,13 @@ declare(strict_types=1);
namespace DesignPatterns\Behavioral\Visitor;
class RoleVisitor implements RoleVisitorInterface
/**
* Note: the visitor must not choose itself which method to
* invoke, it is the Visitee that make this decision
*/
interface RoleVisitor
{
/**
* @var Role[]
*/
private $visited = [];
public function visitUser(User $role);
public function visitGroup(Group $role)
{
$this->visited[] = $role;
}
public function visitUser(User $role)
{
$this->visited[] = $role;
}
/**
* @return Role[]
*/
public function getVisited(): array
{
return $this->visited;
}
public function visitGroup(Group $role);
}