mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-05-22 06:21:46 +02:00
you MUST inherit from the component contract. If not, this is no longer a composite pattern
This commit is contained in:
parent
6443fecebc
commit
f76b8b1ab3
@ -13,8 +13,10 @@ namespace DesignPatterns\Composite;
|
||||
* subsequently runs trough all its child elements and calls render() on them
|
||||
* - Zend_Config: a tree of configuration options, each one is a Zend_Config object
|
||||
*
|
||||
* The composite node MUST extend the component contract. This is mandatory for building
|
||||
* a tree of component.
|
||||
*/
|
||||
class Form
|
||||
class Form extends FormElement
|
||||
{
|
||||
protected $_elements;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user