| Total Complexity | 4 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types=1); |
||
| 11 | abstract class Element implements RenderableParameter |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Factory. |
||
| 15 | * |
||
| 16 | * @param string $elementName |
||
| 17 | * @param Framework $framework |
||
| 18 | * @return Element |
||
| 19 | */ |
||
| 20 | public static function factory(string $elementName, Framework $framework): Element |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var Framework |
||
| 39 | */ |
||
| 40 | protected $framework; |
||
| 41 | |||
| 42 | public function __construct(Framework $framework) |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Renders a form editable version of this Element |
||
| 49 | * |
||
| 50 | * @param array $parameters |
||
| 51 | * @param HTMLNode $previous |
||
| 52 | * @return HTMLNode The HTML rendered. |
||
| 53 | */ |
||
| 54 | abstract public function render(array $parameters, HTMLNode $previous): HTMLNode; |
||
| 55 | } |
||
| 56 |