first commit

This commit is contained in:
kali committed 2024-05-28 17:10:06 +03:00
1 parent 92b3d15cc7
commit 49a337bd0f
43 files changed
+1799

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
<?php
namespace itguild\forms\form\widgets;
use itguild\forms\form\core\cg_view\CgView;
abstract class BaseWidget
{
protected CgView $cgView;
public function __construct()
{
$this->cgView = new CgView();
$this->cgView->viewPath = VIEW_PATH;
}
/**
* @return self
*/
public static function create(): BaseWidget
{
return new static();
}
/**
* @param array $data
* @return mixed
*/
abstract public function run(array $data = []);
}