mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-08 16:06:31 +02:00
more simple an concise example of AbstractFactory
This commit is contained in:
@@ -21,27 +21,27 @@ Code
|
||||
|
||||
You can also find this code on `GitHub`_
|
||||
|
||||
Parser.php
|
||||
Product.php
|
||||
|
||||
.. literalinclude:: Parser.php
|
||||
.. literalinclude:: Product.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
CsvParser.php
|
||||
ShippableProduct.php
|
||||
|
||||
.. literalinclude:: CsvParser.php
|
||||
.. literalinclude:: ShippableProduct.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
JsonParser.php
|
||||
DigitalProduct.php
|
||||
|
||||
.. literalinclude:: JsonParser.php
|
||||
.. literalinclude:: DigitalProduct.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
ParserFactory.php
|
||||
ProductFactory.php
|
||||
|
||||
.. literalinclude:: ParserFactory.php
|
||||
.. literalinclude:: ProductFactory.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
|
Reference in New Issue
Block a user