some more comments, typos etc.

This commit is contained in:
Dominik Liebler
2011-08-23 11:52:46 +02:00
parent 758daca9fa
commit 1f37ca385f
7 changed files with 15 additions and 10 deletions

View File

@@ -10,10 +10,10 @@ namespace DesignPatterns;
* usually the created classes all implement the same interface
*
* Examples:
* - A Factory to create media in a CMS: classes would be text, audio, video, picture
* - 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
* - A factory to create media in a CMS: classes would be text, audio, video, picture
* - 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 TextElement() instead
*
*/
abstract class AbstractFactory