BasePoster.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Niucloud-admin 企业快速开发的saas管理平台
  4. // +----------------------------------------------------------------------
  5. // | 官方网址:https://www.niucloud.com
  6. // +----------------------------------------------------------------------
  7. // | niucloud团队 版权所有 开源版本可自由商用
  8. // +----------------------------------------------------------------------
  9. // | Author: Niucloud Team
  10. // +----------------------------------------------------------------------
  11. namespace core\poster;
  12. use core\loader\Storage;
  13. /**
  14. * Class BasePoster
  15. * @package
  16. */
  17. abstract class BasePoster extends Storage
  18. {
  19. /**
  20. * 初始化
  21. * @param array $config
  22. * @return void
  23. */
  24. protected function initialize(array $config = [])
  25. {
  26. }
  27. /**
  28. * 创建海报
  29. * @param array $poster
  30. * @param string $dir
  31. * @param string $file_path
  32. * @return mixed
  33. */
  34. abstract public function createPoster(array $poster, string $dir, string $file_path);
  35. }