mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-02-25 12:10:28 +00:00
25 lines
542 B
PHP
25 lines
542 B
PHP
<?php
|
|
/**
|
|
* PHP表单生成器
|
|
*
|
|
* @package FormBuilder
|
|
* @author xaboy <xaboy2005@qq.com>
|
|
* @version 2.0
|
|
* @license MIT
|
|
* @link https://github.com/xaboy/form-builder
|
|
* @document http://php.form-create.com
|
|
*/
|
|
|
|
namespace FormBuilder;
|
|
|
|
|
|
use FormBuilder\Contract\CustomComponentInterface;
|
|
use FormBuilder\Contract\FormComponentInterface;
|
|
|
|
class Util
|
|
{
|
|
public static function isComponent($component)
|
|
{
|
|
return $component instanceof CustomComponentInterface || $component instanceof FormComponentInterface;
|
|
}
|
|
} |