tapi/app/entity/gateway/script/BaseScript.php
2025-08-29 23:32:20 +08:00

18 lines
315 B
PHP

<?php
namespace app\entity\gateway\script;
abstract class BaseScript
{
public function __construct(array $_bind = [])
{
foreach ($_bind as $key => $value) {
$this->$key = $value;
}
}
public function toArray(): array
{
return get_object_vars($this);
}
}