mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-23 08:11:17 +02:00
sort php files Behavioral and More
This commit is contained in:
@@ -33,21 +33,15 @@ Code
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
Handler.php
|
||||
|
||||
.. literalinclude:: Handler.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Request.php
|
||||
|
||||
.. literalinclude:: Request.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Responsible/FastStorage.php
|
||||
Handler.php
|
||||
|
||||
.. literalinclude:: Responsible/FastStorage.php
|
||||
.. literalinclude:: Handler.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
@@ -57,6 +51,12 @@ Responsible/SlowStorage.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Responsible/FastStorage.php
|
||||
|
||||
.. literalinclude:: Responsible/FastStorage.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Test
|
||||
----
|
||||
|
||||
|
@@ -40,6 +40,12 @@ Code
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
CommandInterface.php
|
||||
|
||||
.. literalinclude:: CommandInterface.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
HelloCommand.php
|
||||
|
||||
.. literalinclude:: HelloCommand.php
|
||||
@@ -52,12 +58,6 @@ Receiver.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
CommandInterface.php
|
||||
|
||||
.. literalinclude:: CommandInterface.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Invoker.php
|
||||
|
||||
.. literalinclude:: Invoker.php
|
||||
|
@@ -33,15 +33,15 @@ Code
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
BookList.php
|
||||
Book.php
|
||||
|
||||
.. literalinclude:: BookList.php
|
||||
.. literalinclude:: Book.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
BookListReverseIterator.php
|
||||
BookList.php
|
||||
|
||||
.. literalinclude:: BookListReverseIterator.php
|
||||
.. literalinclude:: BookList.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
@@ -51,9 +51,9 @@ BookListIterator.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Book.php
|
||||
BookListReverseIterator.php
|
||||
|
||||
.. literalinclude:: Book.php
|
||||
.. literalinclude:: BookListReverseIterator.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
|
@@ -37,12 +37,6 @@ Code
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
Caretaker.php
|
||||
|
||||
.. literalinclude:: Caretaker.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Memento.php
|
||||
|
||||
.. literalinclude:: Memento.php
|
||||
@@ -55,6 +49,12 @@ Originator.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Caretaker.php
|
||||
|
||||
.. literalinclude:: Caretaker.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Test
|
||||
----
|
||||
|
||||
|
@@ -38,18 +38,6 @@ Code
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
PrintLogger.php
|
||||
|
||||
.. literalinclude:: PrintLogger.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
NullLogger.php
|
||||
|
||||
.. literalinclude:: NullLogger.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Service.php
|
||||
|
||||
.. literalinclude:: Service.php
|
||||
@@ -62,6 +50,18 @@ LoggerInterface.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
PrintLogger.php
|
||||
|
||||
.. literalinclude:: PrintLogger.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
NullLogger.php
|
||||
|
||||
.. literalinclude:: NullLogger.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Test
|
||||
----
|
||||
|
||||
|
@@ -33,18 +33,18 @@ Code
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
UserObserver.php
|
||||
|
||||
.. literalinclude:: UserObserver.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
User.php
|
||||
|
||||
.. literalinclude:: User.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
UserObserver.php
|
||||
|
||||
.. literalinclude:: UserObserver.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Test
|
||||
----
|
||||
|
||||
|
@@ -21,15 +21,9 @@ Code
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
Either.php
|
||||
Item.php
|
||||
|
||||
.. literalinclude:: Either.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
PriceSpecification.php
|
||||
|
||||
.. literalinclude:: PriceSpecification.php
|
||||
.. literalinclude:: Item.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
@@ -45,9 +39,15 @@ AbstractSpecification.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Item.php
|
||||
Either.php
|
||||
|
||||
.. literalinclude:: Item.php
|
||||
.. literalinclude:: Either.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
PriceSpecification.php
|
||||
|
||||
.. literalinclude:: PriceSpecification.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
|
@@ -20,9 +20,9 @@ Code
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
OrderInterface.php
|
||||
OrderController.php
|
||||
|
||||
.. literalinclude:: OrderInterface.php
|
||||
.. literalinclude:: OrderController.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
@@ -32,9 +32,9 @@ OrderFactory.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
OrderController.php
|
||||
OrderInterface.php
|
||||
|
||||
.. literalinclude:: OrderController.php
|
||||
.. literalinclude:: OrderInterface.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
|
@@ -34,18 +34,6 @@ Code
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
DateComparator.php
|
||||
|
||||
.. literalinclude:: DateComparator.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
IdComparator.php
|
||||
|
||||
.. literalinclude:: IdComparator.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
ObjectCollection.php
|
||||
|
||||
.. literalinclude:: ObjectCollection.php
|
||||
@@ -58,6 +46,18 @@ ComparatorInterface.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
DateComparator.php
|
||||
|
||||
.. literalinclude:: DateComparator.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
IdComparator.php
|
||||
|
||||
.. literalinclude:: IdComparator.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Test
|
||||
----
|
||||
|
||||
|
@@ -33,12 +33,6 @@ Code
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
CityJourney.php
|
||||
|
||||
.. literalinclude:: CityJourney.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Journey.php
|
||||
|
||||
.. literalinclude:: Journey.php
|
||||
@@ -51,6 +45,12 @@ BeachJourney.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
CityJourney.php
|
||||
|
||||
.. literalinclude:: CityJourney.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Test
|
||||
----
|
||||
|
||||
|
@@ -25,15 +25,9 @@ Code
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
Group.php
|
||||
RoleVisitorInterface.php
|
||||
|
||||
.. literalinclude:: Group.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Role.php
|
||||
|
||||
.. literalinclude:: Role.php
|
||||
.. literalinclude:: RoleVisitorInterface.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
@@ -43,15 +37,21 @@ RolePrintVisitor.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Role.php
|
||||
|
||||
.. literalinclude:: Role.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
User.php
|
||||
|
||||
.. literalinclude:: User.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
RoleVisitorInterface.php
|
||||
Group.php
|
||||
|
||||
.. literalinclude:: RoleVisitorInterface.php
|
||||
.. literalinclude:: Group.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
|
@@ -31,21 +31,15 @@ Code
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
PostRepository.php
|
||||
|
||||
.. literalinclude:: PostRepository.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Post.php
|
||||
|
||||
.. literalinclude:: Post.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
MemoryStorage.php
|
||||
PostRepository.php
|
||||
|
||||
.. literalinclude:: MemoryStorage.php
|
||||
.. literalinclude:: PostRepository.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
@@ -55,6 +49,12 @@ Storage.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
MemoryStorage.php
|
||||
|
||||
.. literalinclude:: MemoryStorage.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Test
|
||||
----
|
||||
|
||||
|
@@ -35,24 +35,6 @@ Code
|
||||
|
||||
You can also find these code on `GitHub`_
|
||||
|
||||
LogService.php
|
||||
|
||||
.. literalinclude:: LogService.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
LogServiceInterface.php
|
||||
|
||||
.. literalinclude:: LogServiceInterface.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
DatabaseServiceInterface.php
|
||||
|
||||
.. literalinclude:: DatabaseServiceInterface.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
ServiceLocatorInterface.php
|
||||
|
||||
.. literalinclude:: ServiceLocatorInterface.php
|
||||
@@ -65,6 +47,24 @@ ServiceLocator.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
LogServiceInterface.php
|
||||
|
||||
.. literalinclude:: LogServiceInterface.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
LogService.php
|
||||
|
||||
.. literalinclude:: LogService.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
DatabaseServiceInterface.php
|
||||
|
||||
.. literalinclude:: DatabaseServiceInterface.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
DatabaseService.php
|
||||
|
||||
.. literalinclude:: DatabaseService.php
|
||||
|
Reference in New Issue
Block a user