The only rule is that static methods or properties are out of object context. For example, you cannot use $this
inside of a static method.
$MyClass = new MyClass();
$MyClass->Foo();
MyClass::Foo()
原文:https://www.cnblogs.com/qinqiu/p/12876080.html