BaseErp.php 912 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. namespace crmeb\basic;
  3. use crmeb\services\erp\AccessToken;
  4. abstract class BaseErp extends BaseStorage
  5. {
  6. /**
  7. * token句柄
  8. * @var AccessToken
  9. */
  10. protected $accessToken;
  11. /**
  12. * 驱动类型
  13. * @var string
  14. */
  15. protected $name;
  16. /**
  17. * 配置文件名
  18. * @var string
  19. */
  20. protected $configFile;
  21. /**
  22. * BaseErp constructor.
  23. * @param string $name
  24. * @param AccessToken $accessToken
  25. * @param string $configFile
  26. */
  27. public function __construct(string $name, AccessToken $accessToken, string $configFile)
  28. {
  29. parent::__construct($name, [], $configFile);
  30. $this->accessToken = $accessToken;
  31. }
  32. /**
  33. * 初始化
  34. * @param array $config
  35. * @return mixed|void
  36. */
  37. protected function initialize(array $config = [])
  38. {
  39. // parent::initialize($config);
  40. }
  41. }