added new example for abstract factory pattern

This commit is contained in:
Dominik Liebler 2011-09-03 12:21:03 +02:00
parent d6328ab622
commit 22553a4fab

View File

@ -14,6 +14,7 @@ namespace DesignPatterns;
* - 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
* TextElement() instead
* - an abstract factory to create various exceptions (e.g. Doctrine2 uses this method)
*
*/
abstract class AbstractFactory