Update RendererDecorator.php

The Decorator MUST implement the RenderableInterface contract.
This commit is contained in:
Eugene
2017-04-19 12:13:41 +03:00
committed by GitHub
parent bdf8c494f0
commit 0da15dec7f

View File

@ -3,11 +3,11 @@
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
* wrapper.
*/
abstract class RendererDecorator
abstract class RendererDecorator implements RenderableInterface
{
/**
* @var RenderableInterface