mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-24 09:42:24 +01:00
28 lines
472 B
PHP
28 lines
472 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\Mediator;
|
|
|
|
/**
|
|
* MediatorInterface is a contract for the Mediator
|
|
* This interface is not mandatory but it is better for LSP concerns
|
|
*/
|
|
interface MediatorInterface
|
|
{
|
|
/**
|
|
* sends the response
|
|
*
|
|
* @param string $content
|
|
*/
|
|
public function sendResponse($content);
|
|
|
|
/**
|
|
* makes a request
|
|
*/
|
|
public function makeRequest();
|
|
|
|
/**
|
|
* queries the DB
|
|
*/
|
|
public function queryDb();
|
|
}
|