Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
適切なクラス名を使用せずに、静的メソッド呼び出しでクラスを参照する C# に相当するキーワードはありますか?
PHP に相当するものはself.
self
クラス内で発生する場合は、参照を使用する必要はありません。現在のスコープ内にあるため、メソッド/プロパティ名を使用するだけで機能します。別のクラスにある場合は SELF ではないため、クラス名を使用する必要があります。