次のコードを考えると、 $this->myStaticFunc(); を呼び出すことの賛否両論を探しています。vs self::myStaticFunc();
class MyClass
private function myPrivateFunc() {
...
$this->myStaticFunc(); // or self::myStaticFunc();
...
}
// no need to tell me that i can't use $this in here
public static function myStaticFunc() { ... }
}
// access static function
MyClass::myStaticFunc();