mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-09-28 07:19:26 +02:00
cs Composite
This commit is contained in:
@@ -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" />';
|
||||
|
Reference in New Issue
Block a user