mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-31 04:00:18 +02:00
37 lines
1.3 KiB
ReStructuredText
37 lines
1.3 KiB
ReStructuredText
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 <AbstractFactory>`__
|
|
`:notebook: <http://en.wikipedia.org/wiki/Abstract_factory_pattern>`__
|
|
- `Builder <Builder>`__
|
|
`:notebook: <http://en.wikipedia.org/wiki/Builder_pattern>`__
|
|
- `FactoryMethod <FactoryMethod>`__
|
|
`:notebook: <http://en.wikipedia.org/wiki/Factory_method_pattern>`__
|
|
- `Multiton <Multiton>`__ (is considered an anti-pattern! :no\_entry:)
|
|
- `Pool <Pool>`__
|
|
`:notebook: <http://en.wikipedia.org/wiki/Object_pool_pattern>`__
|
|
- `Prototype <Prototype>`__
|
|
`:notebook: <http://en.wikipedia.org/wiki/Prototype_pattern>`__
|
|
- `SimpleFactory <SimpleFactory>`__
|
|
- `Singleton <Singleton>`__
|
|
`:notebook: <http://en.wikipedia.org/wiki/Singleton_pattern>`__ (is
|
|
considered an anti-pattern! :no\_entry:)
|
|
- `StaticFactory <StaticFactory>`__
|
|
|
|
Code
|
|
----
|
|
|
|
You can also find these code on `GitHub`_
|
|
|
|
Test
|
|
----
|
|
|
|
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational
|