From 9795f16c4ec174ede5783c273c17bd7777e48b91 Mon Sep 17 00:00:00 2001 From: Dominik Liebler Date: Mon, 19 Aug 2019 17:28:19 +0200 Subject: [PATCH] remove Interface-Suffix --- Behavioral/Mediator/Colleague.php | 6 ------ Behavioral/Mediator/Mediator.php | 5 ----- Behavioral/Mediator/MediatorInterface.php | 4 ---- 3 files changed, 15 deletions(-) diff --git a/Behavioral/Mediator/Colleague.php b/Behavioral/Mediator/Colleague.php index 29cc21b..50582e5 100644 --- a/Behavioral/Mediator/Colleague.php +++ b/Behavioral/Mediator/Colleague.php @@ -3,15 +3,9 @@ declare(strict_types=1); namespace DesignPatterns\Behavioral\Mediator; -/** - * Colleague is an abstract colleague who works together but he only knows - * the Mediator, not other colleagues - */ abstract class Colleague { /** - * this ensures no change in subclasses. - * * @var MediatorInterface */ protected $mediator; diff --git a/Behavioral/Mediator/Mediator.php b/Behavioral/Mediator/Mediator.php index 30a94fd..8af3361 100644 --- a/Behavioral/Mediator/Mediator.php +++ b/Behavioral/Mediator/Mediator.php @@ -3,11 +3,6 @@ declare(strict_types=1); namespace DesignPatterns\Behavioral\Mediator; -/** - * Mediator is the concrete Mediator for this design pattern - * - * In this example, I have made a "Hello World" with the Mediator Pattern - */ class Mediator implements MediatorInterface { /** diff --git a/Behavioral/Mediator/MediatorInterface.php b/Behavioral/Mediator/MediatorInterface.php index c964034..f5274c2 100644 --- a/Behavioral/Mediator/MediatorInterface.php +++ b/Behavioral/Mediator/MediatorInterface.php @@ -3,10 +3,6 @@ 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 { /**