mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-15 11:24:01 +02:00
improved Flyweight
This commit is contained in:
@@ -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:
|
||||
|
||||
|
Reference in New Issue
Block a user