Design Pattern: Mediator Pattern in PHP
Mediator pattern encapsulates the logic of communication between a bunch of defined objects. A mediator object is used for that. The mediator works as a middleman between the set of objects. This prevents the objects(colleagues) from communicating directly with each other, and ensures loose coupling. This article demonstrates Mediator pattern implementations in PHP.