DesignPatternsPHP/Behavioral/Mediator/MediatorInterface.php
2019-08-17 21:58:04 +02:00

29 lines
536 B
PHP

<?php
declare(strict_types=1);
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();
}