tp6混合easyswoole DLL 多应用模式 修改版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
515 B

5 years ago
  1. <?php
  2. namespace EasySwoole\Spl\Test\Bean;
  3. use EasySwoole\Spl\SplBean;
  4. use EasySwoole\Spl\Test\Bean\Shops;
  5. class TestBean extends SplBean
  6. {
  7. public $a = 2;
  8. protected $b;
  9. private $c;
  10. protected $d_d;
  11. // protected $shops; // 测试setClassMapping
  12. protected function setKeyMapping(): array
  13. {
  14. return [
  15. 'd-d'=>"d_d"
  16. ];
  17. }
  18. // protected function setClassMapping(): array
  19. // {
  20. // return [
  21. // 'shops' => Shops::class
  22. // ];
  23. // }
  24. }