Chapter 7. Delegate Pattern

One of the strongest features of Object Oriented Programming is its dynamic nature. With today's push of more available features, mash-ups and constantly evolving standards, dynamic code is gaining a whole new meaning. Whether its new file storage or streaming standards, a new social networking site or a fresh take at some of the existing Internet pioneer's APIs, web programming continues to mutate. Legacy ways of handling decisions are no longer effective when confronted with the enormous number of options available today. The Delegate Design Pattern is made for taking complex decisions out of the loop by moving smart objects into their place.

Name: Delegate

The Delegate Design Pattern removes decisions and complex functionality from the core object by distributing or delegating them to other objects.

Get Professional PHP Design Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.