mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-26 09:40:15 +02:00
[pl translation] Behavioral.
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
`Chain Of Responsibilities`__
|
||||
=============================
|
||||
|
||||
Purpose:
|
||||
Purpose
|
||||
--------
|
||||
|
||||
To build a chain of objects to handle a call in sequential order. If one
|
||||
object cannot handle a call, it delegates the call to the next in the
|
||||
chain and so forth.
|
||||
|
||||
Examples:
|
||||
Examples
|
||||
---------
|
||||
|
||||
- logging framework, where each chain element decides autonomously what
|
||||
@@ -38,16 +38,16 @@ Handler.php
|
||||
.. literalinclude:: Handler.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Responsible/FastStorage.php
|
||||
|
||||
Responsible/SlowStorage.php
|
||||
|
||||
.. literalinclude:: Responsible/SlowStorage.php
|
||||
.. literalinclude:: Responsible/HttpInMemoryCacheHandler.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Responsible/FastStorage.php
|
||||
Responsible/SlowStorage.php
|
||||
|
||||
.. literalinclude:: Responsible/FastStorage.php
|
||||
.. literalinclude:: Responsible/SlowDatabaseHandler.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
|
@@ -47,5 +47,12 @@ CreateOrder.php
|
||||
Test
|
||||
----
|
||||
|
||||
Tests/StateTest.php
|
||||
|
||||
.. literalinclude:: Tests/StateTest.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
|
||||
.. _`GitHub`: https://github.com/domnikl/DesignPatternsPHP/tree/master/Behavioral/State
|
||||
.. __: http://en.wikipedia.org/wiki/State_pattern
|
Reference in New Issue
Block a user