PHP in Action - Chapter 7, Design Patterns. Part - II
If you’ve been anxiously awaiting part two of this series then your wait is over. Here’s a short introduction to the section part of this series written by the author of the book, Dagfinn Reiersol. I had the privilege of meeting Dagfinn at phpuk last week. Below the introduction is the link I know you’ve been waiting for.
In this section we’ll learn about two patterns: Decorators and Null Objects.
A Decorator is another kind of wrapper around a class. It is used to add responsibilities to a class without burdening the class with additional methods.
A Null Object is an object that participates in the design like an ordinary object, but doesn’t actually do anything. It keeps the OO machinery working smoothly with no
special handling of cases in which nothing needs to be done.
And now, the link. PHP in Action Part 2 of 3
Enjoy!
=C=

Comments