mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-30 03:30:14 +02:00
15 lines
303 B
PHP
15 lines
303 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\Behavioral\Mediator\Subsystem;
|
|
|
|
use DesignPatterns\Behavioral\Mediator\Colleague;
|
|
|
|
class Server extends Colleague
|
|
{
|
|
public function process()
|
|
{
|
|
$data = $this->mediator->queryDb();
|
|
$this->mediator->sendResponse(sprintf("Hello %s", $data));
|
|
}
|
|
}
|