reworked the Mediator pattern

This commit is contained in:
Dominik Liebler
2019-08-22 16:00:47 +02:00
parent 0d24d48c26
commit 6d2f308401
11 changed files with 70 additions and 120 deletions

View File

@@ -0,0 +1,11 @@
<?php declare(strict_types=1);
namespace DesignPatterns\Behavioral\Mediator;
class Ui extends Colleague
{
public function outputUserInfo(string $username)
{
echo $this->mediator->getUser($username);
}
}