mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-17 05:11:18 +02:00
Update RendererDecorator.php
The Decorator MUST implement the RenderableInterface contract.
This commit is contained in:
@@ -3,11 +3,11 @@
|
|||||||
namespace DesignPatterns\Structural\Decorator;
|
namespace DesignPatterns\Structural\Decorator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the Decorator MUST implement the RendererInterface contract, this is the key-feature
|
* the Decorator MUST implement the RenderableInterface contract, this is the key-feature
|
||||||
* of this design pattern. If not, this is no longer a Decorator but just a dumb
|
* of this design pattern. If not, this is no longer a Decorator but just a dumb
|
||||||
* wrapper.
|
* wrapper.
|
||||||
*/
|
*/
|
||||||
abstract class RendererDecorator
|
abstract class RendererDecorator implements RenderableInterface
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* @var RenderableInterface
|
* @var RenderableInterface
|
||||||
|
Reference in New Issue
Block a user