Published On Jun. 18th 2014

Design Patterns in PHP: The Decorator Pattern

Episode 1 Run Time 10:32

Download

A decorator allows us to dynamically extend the behavior of a particular object at runtime, without needing to resort to unnecessary inheritance. Let me give you a demonstration.