TestBean.php 515 B

123456789101112131415161718192021222324252627282930
  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. }