Files
DesignPatternsPHP/Behavioral/Mediator/MediatorInterface.php
Dominik Liebler 64e21e8581 PHP7 Mediator
2016-09-22 09:38:55 +02:00

28 lines
511 B
PHP

<?php
namespace DesignPatterns\Behavioral\Mediator;
/**
* MediatorInterface is a contract for the Mediator
* This interface is not mandatory but it is better for Liskov substitution principle 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();
}