mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-04 05:57:25 +02:00
added new example for abstract factory pattern
This commit is contained in:
@@ -14,6 +14,7 @@ namespace DesignPatterns;
|
|||||||
* - SQL Factory (types are all strings with SQL, but they vary in detail (tables, fields, etc.))
|
* - SQL Factory (types are all strings with SQL, but they vary in detail (tables, fields, etc.))
|
||||||
* - Zend Framework: Zend_Form::createElement() creates form elements, but you could also call new T
|
* - Zend Framework: Zend_Form::createElement() creates form elements, but you could also call new T
|
||||||
* TextElement() instead
|
* TextElement() instead
|
||||||
|
* - an abstract factory to create various exceptions (e.g. Doctrine2 uses this method)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
abstract class AbstractFactory
|
abstract class AbstractFactory
|
||||||
|
Reference in New Issue
Block a user