mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-28 18:50:11 +02:00
[pl translation] Creational/SimpleFactory sorce fix.
This commit is contained in:
@@ -7,7 +7,9 @@ Purpose
|
||||
SimpleFactory is a simple factory pattern.
|
||||
|
||||
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.
|
||||
|
||||
It always should be preferred over a static factory!
|
||||
|
||||
UML Diagram
|
||||
|
Reference in New Issue
Block a user