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.
30 lines
515 B
30 lines
515 B
<?php
|
|
|
|
namespace EasySwoole\Spl\Test\Bean;
|
|
|
|
use EasySwoole\Spl\SplBean;
|
|
use EasySwoole\Spl\Test\Bean\Shops;
|
|
|
|
class TestBean extends SplBean
|
|
{
|
|
public $a = 2;
|
|
protected $b;
|
|
private $c;
|
|
protected $d_d;
|
|
// protected $shops; // 测试setClassMapping
|
|
|
|
protected function setKeyMapping(): array
|
|
{
|
|
return [
|
|
'd-d'=>"d_d"
|
|
];
|
|
}
|
|
|
|
// protected function setClassMapping(): array
|
|
// {
|
|
// return [
|
|
// 'shops' => Shops::class
|
|
// ];
|
|
// }
|
|
|
|
}
|