mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-29 19:20:18 +02:00
[pl translation] Creational/SimpleFactory sorce fix.
This commit is contained in:
@@ -7,7 +7,9 @@ Purpose
|
|||||||
SimpleFactory is a simple factory pattern.
|
SimpleFactory is a simple factory pattern.
|
||||||
|
|
||||||
It differs from the static factory because it is not static.
|
It differs from the static factory because it is not static.
|
||||||
|
|
||||||
Therefore, you can have multiple factories, differently parametrized, you can subclass it and you can mock it.
|
Therefore, you can have multiple factories, differently parametrized, you can subclass it and you can mock it.
|
||||||
|
|
||||||
It always should be preferred over a static factory!
|
It always should be preferred over a static factory!
|
||||||
|
|
||||||
UML Diagram
|
UML Diagram
|
||||||
|
Reference in New Issue
Block a user