[pl translation] Behavioral.

This commit is contained in:
Piotr Grabski-Gradzinski
2017-06-28 22:09:20 +02:00
parent c1f0faccc8
commit 2eb8be122a
15 changed files with 1180 additions and 7 deletions

View File

@@ -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:

View File

@@ -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