$> git checkout mediator
$> composer update
Intent
Define an object that encapsulates how a set of objects interact. Mediator promotes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction independently.1
Applications
Everyone needs help sometimes. Sometimes you have enough on your plate. The mediator is that guy in the middle who works with you. A few examples of real-world mediators are lawyers, secretaries, and real estate agents. The real estate agent works with the buyer and seller to accomplish the task of changing ownership of a home. ...