cs Composite

This commit is contained in:
Dominik Liebler
2013-09-11 16:10:36 +02:00
parent ed3bc7f2ec
commit 45ca69025b
4 changed files with 43 additions and 4 deletions

View File

@@ -2,8 +2,18 @@
namespace DesignPatterns\Composite;
/**
* Class InputElement
*/
class InputElement extends FormElement
{
/**
* renders the input element HTML
*
* @param int $indent
*
* @return mixed|string
*/
public function render($indent = 0)
{
return str_repeat(' ', $indent) . '<input type="text" />';