mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-13 18:34:06 +02:00
reworked the Mediator pattern
This commit is contained in:
11
Behavioral/Mediator/Ui.php
Normal file
11
Behavioral/Mediator/Ui.php
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user