diff --git a/AbstractFactory/AbstractFactory.php b/AbstractFactory/AbstractFactory.php index 9473cf4..2808f9f 100644 --- a/AbstractFactory/AbstractFactory.php +++ b/AbstractFactory/AbstractFactory.php @@ -7,12 +7,13 @@ namespace DesignPatterns; * * Purpose: * to create series of related or dependant objects without specifying their concrete classes, - * usually created classes would all implement the same interface + * 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 TextElement() or so + * - Zend Framework: Zend_Form::createElement() creates form elements, but you could also call new T + * TextElement() instead * */ abstract class AbstractFactory