Skip to content

Commit 0da15de

Browse files
authored
Update RendererDecorator.php
The Decorator MUST implement the RenderableInterface contract.
1 parent bdf8c49 commit 0da15de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Structural/Decorator/RendererDecorator.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
namespace DesignPatterns\Structural\Decorator;
44

55
/**
6-
* the Decorator MUST implement the RendererInterface contract, this is the key-feature
6+
* the Decorator MUST implement the RenderableInterface contract, this is the key-feature
77
* of this design pattern. If not, this is no longer a Decorator but just a dumb
88
* wrapper.
99
*/
10-
abstract class RendererDecorator
10+
abstract class RendererDecorator implements RenderableInterface
1111
{
1212
/**
1313
* @var RenderableInterface

0 commit comments

Comments
 (0)