受保护的静止的 $member_id;
class TokenController extends CommonController
{
protected static $member_id;
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
static 是类成员,不是对象成员.
protected 就是只有该类和派生类才能访问.
当一个静态类允许派生类访问成员的时候,就用这样的写法
类成员变量, 对这个变量的操控只能通过函数控制,这样查询代码哪set get时就可以用到了.
因为,只有get set才会改变值