Intent
Provide an interface for creating families of related or dependent objects without specifying their concrete classes.
提供一个创建一系列相关或相互依赖对象的接口,而无需指定它们具体的类。
Code
Code can be found on Github
src/Creational/AbstractFactory/AbstractFactory.php
1 |
|
src/Creational/AbstractFactory/HtmlFactory.php
1 |
|
src/Creational/AbstractFactory/JsonFactory.php
1 |
|
src/Creational/AbstractFactory/Text.php
1 |
|
src/Creational/AbstractFactory/HtmlText.php
1 |
|
src/Creational/AbstractFactory/JsonText.php
1 |
|
Test
1 |
|