mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-02-23 01:02:25 +01:00
Simple Factory
Purpose
ConcreteFactory is a simple factory pattern.
It differs from the static factory because it is NOT static and as you know: static => global => evil!
Therefore, you can haZ multiple factories, differently parametrized, you can subclass it and you can mock-up it.