mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 09:42:24 +01:00
21 lines
354 B
PHP
21 lines
354 B
PHP
<?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");
|
|
}
|
|
}
|