mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-12 18:04:04 +02:00
start a restructure
This commit is contained in:
20
Behavioral/Mediator/Subsystem/Server.php
Normal file
20
Behavioral/Mediator/Subsystem/Server.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Mediator\Subsystem;
|
||||
|
||||
use DesignPatterns\Mediator\Colleague;
|
||||
|
||||
/**
|
||||
* Server serves responses
|
||||
*/
|
||||
class Server extends Colleague
|
||||
{
|
||||
/**
|
||||
* process on server
|
||||
*/
|
||||
public function process()
|
||||
{
|
||||
$data = $this->getMediator()->queryDb();
|
||||
$this->getMediator()->sendResponse("Hello $data");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user