- Refractoring on the old code base
This commit is contained in:
1 parent
72940b3615
commit
6aaa05b37d
6 files changed
+53
-52
No files matched your search
@@ -11,8 +11,6 @@ class UiInput extends UiElement implements Extension {
|
||||
|
||||
public string $token = "ui:input";
|
||||
|
||||
public string $tag = "input";
|
||||
|
||||
public array $attributes = [
|
||||
'class' => 'ui-input',
|
||||
];
|
||||
@@ -24,7 +22,11 @@ class UiInput extends UiElement implements Extension {
|
||||
protected /* ? mixed */ $value;
|
||||
|
||||
protected string $name;
|
||||
|
||||
|
||||
public function __construct(
|
||||
public string $tag = "input",
|
||||
) {}
|
||||
|
||||
public function parse(\Picea\Compiler\Context &$context, ?string $arguments, string $token, array $options = []) : string
|
||||
{
|
||||
return "<?php echo ( new \\" . static::class . "() )->buildHtml($arguments) ?>";
|
||||
|
||||
Reference in new issue
Block a user