You can then store these Settings in static members of the class, making the value available to subsequent messages.
然后,您可以将这些设置保存在类的静态成员中,以便后续的消息可以使用其值。
Another important addition to PHP V5 is support for static members and methods on classes.
PHP V 5中的另一个重要的新功能是支持对类使用静态成员和方法。
Enclosing type parameters should not be referred to inside static members.
不应在静态成员中引用封闭类型参数。
应用推荐