Skip to content

Commit 9630419

Browse files
author
Dominik Liebler
committed
remove Interface-Suffix
1 parent dba45b8 commit 9630419

File tree

7 files changed

+9
-32
lines changed

7 files changed

+9
-32
lines changed

Structural/Composite/Form.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
* The composite node MUST extend the component contract. This is mandatory for building
88
* a tree of components.
99
*/
10-
class Form implements RenderableInterface
10+
class Form implements Renderable
1111
{
1212
/**
13-
* @var RenderableInterface[]
13+
* @var Renderable[]
1414
*/
1515
private $elements;
1616

@@ -36,9 +36,9 @@ public function render(): string
3636
}
3737

3838
/**
39-
* @param RenderableInterface $element
39+
* @param Renderable $element
4040
*/
41-
public function addElement(RenderableInterface $element)
41+
public function addElement(Renderable $element)
4242
{
4343
$this->elements[] = $element;
4444
}

Structural/Composite/InputElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace DesignPatterns\Structural\Composite;
55

6-
class InputElement implements RenderableInterface
6+
class InputElement implements Renderable
77
{
88
public function render(): string
99
{

Structural/Composite/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ Code
2626

2727
You can also find this code on `GitHub`_
2828

29-
RenderableInterface.php
29+
Renderable.php
3030

31-
.. literalinclude:: RenderableInterface.php
31+
.. literalinclude:: Renderable.php
3232
:language: php
3333
:linenos:
3434

Structural/Composite/RenderableInterface.php renamed to Structural/Composite/Renderable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace DesignPatterns\Structural\Composite;
55

6-
interface RenderableInterface
6+
interface Renderable
77
{
88
public function render(): string;
99
}

Structural/Composite/TextElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace DesignPatterns\Structural\Composite;
55

6-
class TextElement implements RenderableInterface
6+
class TextElement implements Renderable
77
{
88
/**
99
* @var string

Structural/Composite/uml/uml.png

-4.13 KB
Loading

Structural/Composite/uml/uml.txt

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)