Skip to content

Commit 32cf89b

Browse files
author
Dominik Liebler
committed
Merge pull request DesignPatternsPHP#165 from r4j4h/patch-1
Filling out some basic readme
2 parents dab2275 + 3ea4bf7 commit 32cf89b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

More/Delegation/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
Purpose
55
-------
66

7-
...
7+
Demonstrate the Delegator pattern, where an object, instead of performing one of its stated tasks, delegates that task to an associated helper object. In this case TeamLead professes to writeCode and Usage uses this, while TeamLead delegates writeCode to JuniorDeveloper's writeBadCode function. This inverts the responsibility so that Usage is unknowingly executing writeBadCode.
88

99
Examples
1010
--------
1111

12-
...
12+
Please review JuniorDeveloper.php, TeamLead.php, and then Usage.php to see it all tied together.
1313

1414
UML Diagram
1515
-----------

0 commit comments

Comments
 (0)