mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-09 00:16:32 +02:00
PSR-0 with tests
This commit is contained in:
11
Composite/TextElement.php
Normal file
11
Composite/TextElement.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace DesignPatterns\Composite;
|
||||
|
||||
class TextElement extends FormElement
|
||||
{
|
||||
public function render()
|
||||
{
|
||||
return 'this is a text element';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user