mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-28 07:19:26 +02:00
* rewrite of the Abstract Factory pattern * update composer deps * fixed argument to json_encode which cannot be null
Creational
In software engineering, creational design patterns are design patterns that deal with object creation mechanisms, trying to create objects in a manner suitable to the situation. The basic form of object creation could result in design problems or added complexity to the design. Creational design patterns solve this problem by somehow controlling this object creation.
- AbstractFactory 📓
- Builder 📓
- FactoryMethod 📓
- Multiton (is considered an anti-pattern! ⛔)
- Pool 📓
- Prototype 📓
- SimpleFactory
- Singleton 📓 (is considered an anti-pattern! ⛔)
- StaticFactory