From 0da15dec7f46717dbf2749d93bb658adbb526b45 Mon Sep 17 00:00:00 2001 From: Eugene Date: Wed, 19 Apr 2017 12:13:41 +0300 Subject: [PATCH] Update RendererDecorator.php The Decorator MUST implement the RenderableInterface contract. --- Structural/Decorator/RendererDecorator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Structural/Decorator/RendererDecorator.php b/Structural/Decorator/RendererDecorator.php index e2bd02a..a837f8c 100644 --- a/Structural/Decorator/RendererDecorator.php +++ b/Structural/Decorator/RendererDecorator.php @@ -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