VideoTaskConfig.php 705 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace addons\ShortVideo\common\events;
  3. use common\components\BaseEvent;
  4. use common\enums\EventNameEnum;
  5. //获取插件视频任务配置
  6. class VideoTaskConfig extends BaseEvent
  7. {
  8. public $name = EventNameEnum::VIDEO_TASK_CONFIG;
  9. public $video_config;
  10. public function __construct($mall_id, $video_config)
  11. {
  12. parent::__construct($mall_id);
  13. $this->video_config = $video_config;
  14. }
  15. public function getVideoConfig()
  16. {
  17. return $this->video_config;
  18. }
  19. public function setVideoConfig($video_config)
  20. {
  21. $this->video_config = $video_config;
  22. }
  23. public function getResultForm()
  24. {
  25. return $this->video_config;
  26. }
  27. }