File tree Expand file tree Collapse file tree 3 files changed +0
-15
lines changed Expand file tree Collapse file tree 3 files changed +0
-15
lines changed Original file line number Diff line number Diff line change 3
3
4
4
namespace DesignPatterns \Behavioral \Mediator ;
5
5
6
- /**
7
- * Colleague is an abstract colleague who works together but he only knows
8
- * the Mediator, not other colleagues
9
- */
10
6
abstract class Colleague
11
7
{
12
8
/**
13
- * this ensures no change in subclasses.
14
- *
15
9
* @var MediatorInterface
16
10
*/
17
11
protected $ mediator ;
Original file line number Diff line number Diff line change 3
3
4
4
namespace DesignPatterns \Behavioral \Mediator ;
5
5
6
- /**
7
- * Mediator is the concrete Mediator for this design pattern
8
- *
9
- * In this example, I have made a "Hello World" with the Mediator Pattern
10
- */
11
6
class Mediator implements MediatorInterface
12
7
{
13
8
/**
Original file line number Diff line number Diff line change 3
3
4
4
namespace DesignPatterns \Behavioral \Mediator ;
5
5
6
- /**
7
- * MediatorInterface is a contract for the Mediator
8
- * This interface is not mandatory but it is better for Liskov substitution principle concerns.
9
- */
10
6
interface MediatorInterface
11
7
{
12
8
/**
You can’t perform that action at this time.
0 commit comments