27 lines
509 B
PHP
27 lines
509 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
namespace Builder\View\Components\Widgets;
|
|
use Builder\View\Components\Component;
|
|
class Markdown extends Component
|
|
{
|
|
protected $componentName = "Markdown";
|
|
|
|
protected $content;
|
|
|
|
public function __construct($content)
|
|
{
|
|
$this->content = $content;
|
|
}
|
|
|
|
public static function make($content=""){
|
|
return new Markdown($content);
|
|
}
|
|
|
|
public function content($content)
|
|
{
|
|
$this->content = $content;
|
|
return $this;
|
|
}
|
|
|
|
}
|