27 lines
463 B
PHP
27 lines
463 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
namespace Builder\View\Components\Widgets;
|
|
use Builder\View\Components\Component;
|
|
class Text extends Component
|
|
{
|
|
|
|
protected $componentName = "IText";
|
|
|
|
protected $text = "";
|
|
|
|
/**
|
|
* LvaText constructor.
|
|
* @param string $text
|
|
*/
|
|
public function __construct(string $text)
|
|
{
|
|
$this->text = $text;
|
|
}
|
|
|
|
|
|
static public function make($text = "")
|
|
{
|
|
return new Text($text);
|
|
}
|
|
}
|