Files
DesignPatternsPHP/Structural/Decorator/README.md
2014-07-29 10:18:51 -05:00

344 B

Decorator

Purpose

To dynamically add new functionality to class instances.

Examples

  • Zend Framework: decorators for Zend_Form_Element instances
  • Web Service Layer: Decorators JSON and XML for a REST service (in this case, only one of these should be allowed of course)

UML Diagram

Alt Decorator UML Diagram