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.

68 lines
1.3 KiB

<?php
/**
* @CreateTime: 2019/12/7 下午10:59
* @Author: huizhang <tuzisir@163.com>
* @Copyright: copyright(2019) Easyswoole all rights reserved
* @Description: 兼容php7.4约束类型单测
*/
namespace EasySwoole\Spl\Test\Bean;
use EasySwoole\Spl\SplBean;
class TestAllProperty extends SplBean{
// static
public static $staticA;
protected static $staticB;
private static $staticC;
// static赋初值
public static $staticInitA='';
protected static $staticInitB='';
private static $staticInitC='';
// 普通
public $a;
protected $b;
private $c;
// 普通赋初值
public $aInit='';
protected $bInit='';
private $cInit='';
}
class TestAllProperty74 extends SplBean{
// static
public static $staticA;
protected static $staticB;
private static $staticC;
// static赋初值
public static $staticInitA='';
protected static $staticInitB='';
private static $staticInitC='';
// 普通
public $a;
protected $b;
private $c;
// 普通赋初值
public $aInit='';
protected $bInit='';
private $cInit='';
// 约束类型
public string $typeA;
protected int $typeB;
private bool $typeC;
// 约束类型赋初值
public string $typeInitA='';
protected int $typeInitB=1;
private bool $typeInitC=true;
}