Continuing my series on PHP design patterns, today it’s the turn of the Decorator. In contrast to last week’s Strategy Pattern which is used to change the “guts” of a class, the Decorator Pattern is used to extend the behavior of a class with different functionality at run time. This is achieved by implementing a “decorator” class that implements the same interface as the object that you wish to “decorate” and wraps it’s content.