Simple Implementation of Mediator desing pattern in PHP