mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-12 01:44:09 +02:00
refactored Decorator pattern
This commit is contained in:
@@ -25,33 +25,33 @@ Code
|
||||
|
||||
You can also find this code on `GitHub`_
|
||||
|
||||
RenderableInterface.php
|
||||
Booking.php
|
||||
|
||||
.. literalinclude:: RenderableInterface.php
|
||||
.. literalinclude:: Booking.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
Webservice.php
|
||||
BookingDecorator.php
|
||||
|
||||
.. literalinclude:: Webservice.php
|
||||
.. literalinclude:: BookingDecorator.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
RendererDecorator.php
|
||||
DoubleRoomBooking.php
|
||||
|
||||
.. literalinclude:: RendererDecorator.php
|
||||
.. literalinclude:: DoubleRoomBooking.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
XmlRenderer.php
|
||||
ExtraBed.php
|
||||
|
||||
.. literalinclude:: XmlRenderer.php
|
||||
.. literalinclude:: ExtraBed.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
JsonRenderer.php
|
||||
WiFi.php
|
||||
|
||||
.. literalinclude:: JsonRenderer.php
|
||||
.. literalinclude:: WiFi.php
|
||||
:language: php
|
||||
:linenos:
|
||||
|
||||
|
Reference in New Issue
Block a user