mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-09 00:16:32 +02:00
remove Interface-Suffix
This commit is contained in:
@@ -7,10 +7,10 @@ namespace DesignPatterns\Structural\Composite;
|
||||
* The composite node MUST extend the component contract. This is mandatory for building
|
||||
* a tree of components.
|
||||
*/
|
||||
class Form implements RenderableInterface
|
||||
class Form implements Renderable
|
||||
{
|
||||
/**
|
||||
* @var RenderableInterface[]
|
||||
* @var Renderable[]
|
||||
*/
|
||||
private $elements;
|
||||
|
||||
@@ -36,9 +36,9 @@ class Form implements RenderableInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* @param RenderableInterface $element
|
||||
* @param Renderable $element
|
||||
*/
|
||||
public function addElement(RenderableInterface $element)
|
||||
public function addElement(Renderable $element)
|
||||
{
|
||||
$this->elements[] = $element;
|
||||
}
|
||||
|
Reference in New Issue
Block a user