FastMovieAI AI短剧创作平台 二开基线
- 源码: xhadmincn/FastMovieAI (Apache 2.0) - 二开: Docker部署, Swoole改Select, route.php修复, 补update/VERSION - vendor/示例资源已gitignore
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace app\expose\build\builder;
|
||||
|
||||
class SoltBuilder
|
||||
{
|
||||
public $name = 'default';
|
||||
public function __construct($name = 'default')
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
public static function solt(string $solt = 'default')
|
||||
{
|
||||
$self = new self($solt);
|
||||
return $self;
|
||||
}
|
||||
public function text(string $text)
|
||||
{
|
||||
return [$this->name => $text];
|
||||
}
|
||||
public function add(mixed $component, mixed $props = [], mixed $children = null)
|
||||
{
|
||||
return [
|
||||
$this->name => [
|
||||
'component' => $component,
|
||||
'props' => $props,
|
||||
'children' => $children
|
||||
]
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user