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

@@ -0,0 +1,30 @@
<?php
declare(strict_types=1);
namespace DesignPatterns\Behavioral\Visitor;
class RecordingVisitor implements RoleVisitor
{
/**
* @var Role[]
*/
private $visited = [];
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;
}
}