mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-31 12:10:10 +02:00
sort php files Creational
This commit is contained in:
@@ -21,9 +21,9 @@ Code
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
Text.php
|
||||
AbstractFactory.php
|
||||
|
||||
.. literalinclude:: Text.php
|
||||
.. literalinclude:: AbstractFactory.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
@@ -33,9 +33,9 @@ JsonFactory.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
AbstractFactory.php
|
||||
HtmlFactory.php
|
||||
|
||||
.. literalinclude:: AbstractFactory.php
|
||||
.. literalinclude:: HtmlFactory.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
@@ -45,27 +45,15 @@ MediaInterface.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
HtmlFactory.php
|
||||
|
||||
.. literalinclude:: HtmlFactory.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Picture.php
|
||||
|
||||
.. literalinclude:: Picture.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Html/Picture.php
|
||||
Text.php
|
||||
|
||||
.. literalinclude:: Html/Picture.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Html/Text.php
|
||||
|
||||
.. literalinclude:: Html/Text.php
|
||||
.. literalinclude:: Text.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
@@ -81,6 +69,18 @@ Json/Text.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Html/Picture.php
|
||||
|
||||
.. literalinclude:: Html/Picture.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Html/Text.php
|
||||
|
||||
.. literalinclude:: Html/Text.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Test
|
||||
----
|
||||
|
||||
@@ -91,4 +91,4 @@ Tests/AbstractFactoryTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/AbstractFactory
|
||||
.. _`Abstract Factory`: http://en.wikipedia.org/wiki/Abstract_factory_pattern
|
||||
.. _`Abstract Factory`: http://en.wikipedia.org/wiki/Abstract_factory_pattern
|
||||
|
@@ -32,27 +32,51 @@ Code
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
Director.php
|
||||
|
||||
.. literalinclude:: Director.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
BuilderInterface.php
|
||||
|
||||
.. literalinclude:: BuilderInterface.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
BikeBuilder.php
|
||||
|
||||
.. literalinclude:: BikeBuilder.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
CarBuilder.php
|
||||
|
||||
.. literalinclude:: CarBuilder.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Director.php
|
||||
Parts/Vehicle.php
|
||||
|
||||
.. literalinclude:: Director.php
|
||||
.. literalinclude:: Parts/Vehicle.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
BikeBuilder.php
|
||||
Parts/Bike.php
|
||||
|
||||
.. literalinclude:: BikeBuilder.php
|
||||
.. literalinclude:: Parts/Bike.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Parts/Car.php
|
||||
|
||||
.. literalinclude:: Parts/Car.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Parts/Engine.php
|
||||
|
||||
.. literalinclude:: Parts/Engine.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
@@ -68,30 +92,6 @@ Parts/Door.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Parts/Car.php
|
||||
|
||||
.. literalinclude:: Parts/Car.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Parts/Bike.php
|
||||
|
||||
.. literalinclude:: Parts/Bike.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Parts/Vehicle.php
|
||||
|
||||
.. literalinclude:: Parts/Vehicle.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Parts/Engine.php
|
||||
|
||||
.. literalinclude:: Parts/Engine.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Test
|
||||
----
|
||||
|
||||
@@ -102,4 +102,4 @@ Tests/DirectorTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Builder
|
||||
.. _`Builder`: http://en.wikipedia.org/wiki/Builder_pattern
|
||||
.. _`Builder`: http://en.wikipedia.org/wiki/Builder_pattern
|
||||
|
@@ -28,15 +28,9 @@ Code
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
Porsche.php
|
||||
FactoryMethod.php
|
||||
|
||||
.. literalinclude:: Porsche.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
GermanFactory.php
|
||||
|
||||
.. literalinclude:: GermanFactory.php
|
||||
.. literalinclude:: FactoryMethod.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
@@ -46,15 +40,21 @@ ItalianFactory.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
GermanFactory.php
|
||||
|
||||
.. literalinclude:: GermanFactory.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
VehicleInterface.php
|
||||
|
||||
.. literalinclude:: VehicleInterface.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
FactoryMethod.php
|
||||
Porsche.php
|
||||
|
||||
.. literalinclude:: FactoryMethod.php
|
||||
.. literalinclude:: Porsche.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
@@ -80,4 +80,4 @@ Tests/FactoryMethodTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/FactoryMethod
|
||||
.. _`Factory Method`: http://en.wikipedia.org/wiki/Factory_method_pattern
|
||||
.. _`Factory Method`: http://en.wikipedia.org/wiki/Factory_method_pattern
|
||||
|
@@ -54,17 +54,17 @@ Worker.php
|
||||
Test
|
||||
----
|
||||
|
||||
Tests/TestWorker.php
|
||||
|
||||
.. literalinclude:: Tests/TestWorker.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Tests/PoolTest.php
|
||||
|
||||
.. literalinclude:: Tests/PoolTest.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Tests/TestWorker.php
|
||||
|
||||
.. literalinclude:: Tests/TestWorker.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Pool
|
||||
.. _`Pool`: http://en.wikipedia.org/wiki/Object_pool_pattern
|
||||
|
@@ -25,6 +25,12 @@ Code
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
index.php
|
||||
|
||||
.. literalinclude:: index.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
BookPrototype.php
|
||||
|
||||
.. literalinclude:: BookPrototype.php
|
||||
@@ -37,12 +43,6 @@ BarBookPrototype.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
index.php
|
||||
|
||||
.. literalinclude:: index.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
FooBookPrototype.php
|
||||
|
||||
.. literalinclude:: FooBookPrototype.php
|
||||
@@ -53,4 +53,4 @@ Test
|
||||
----
|
||||
|
||||
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Prototype
|
||||
.. _`Prototype`: http://en.wikipedia.org/wiki/Prototype_pattern
|
||||
.. _`Prototype`: http://en.wikipedia.org/wiki/Prototype_pattern
|
||||
|
@@ -19,4 +19,4 @@ this object creation.
|
||||
Prototype/README
|
||||
SimpleFactory/README
|
||||
Singleton/README
|
||||
StaticFactory/README
|
||||
StaticFactory/README
|
||||
|
@@ -36,18 +36,18 @@ VehicleInterface.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Scooter.php
|
||||
|
||||
.. literalinclude:: Scooter.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Bicycle.php
|
||||
|
||||
.. literalinclude:: Bicycle.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Scooter.php
|
||||
|
||||
.. literalinclude:: Scooter.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Test
|
||||
----
|
||||
|
||||
|
@@ -47,4 +47,4 @@ Tests/SingletonTest.php
|
||||
:linenos:
|
||||
|
||||
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Creational/Singleton
|
||||
.. _`Singleton`: http://en.wikipedia.org/wiki/Singleton_pattern
|
||||
.. _`Singleton`: http://en.wikipedia.org/wiki/Singleton_pattern
|
||||
|
Reference in New Issue
Block a user