mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-05-23 23:09:43 +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
|
* 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
|
* - 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;
|
protected $_elements;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user