mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-10-24 11:46:03 +02:00
406 B
406 B
Composite
Purpose
To treat a group of objects the same way as a single instance of the object.
Examples
- a form class instance handles all its form elements like a single instance of the form, when
render()is called, it subsequently runs trough all its child elements and callsrender()on them Zend_Config: a tree of configuration options, each one is aZend_Configobject itself