Base.php 540 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * PHP表单生成器
  4. *
  5. * @package FormBuilder
  6. * @author xaboy <xaboy2005@qq.com>
  7. * @version 2.0
  8. * @license MIT
  9. * @link https://github.com/xaboy/form-builder
  10. * @document http://php.form-create.com
  11. */
  12. namespace FormBuilder\Factory;
  13. use FormBuilder\Driver\CustomComponent;
  14. abstract class Base
  15. {
  16. /**
  17. * 创建自定义组件
  18. *
  19. * @param string $type
  20. * @return CustomComponent
  21. */
  22. public static function createComponent($type)
  23. {
  24. return new CustomComponent($type);
  25. }
  26. }