improved Flyweight

This commit is contained in:
Dominik Liebler
2019-08-19 17:47:02 +02:00
parent c00800f572
commit 2afed49abd
8 changed files with 94 additions and 46 deletions

View File

@@ -20,21 +20,27 @@ Code
You can also find this code on `GitHub`_
FlyweightInterface.php
Text.php
.. literalinclude:: FlyweightInterface.php
.. literalinclude:: Text.php
:language: php
:linenos:
CharacterFlyweight.php
Word.php
.. literalinclude:: CharacterFlyweight.php
.. literalinclude:: Word.php
:language: php
:linenos:
FlyweightFactory.php
Character.php
.. literalinclude:: FlyweightFactory.php
.. literalinclude:: Character.php
:language: php
:linenos:
TextFactory.php
.. literalinclude:: TextFactory.php
:language: php
:linenos: