ReflectionMethod クラス
ReflectionMethod
&reftitle.intro;
ReflectionMethod クラスは
メソッドについての情報を報告します。
&reftitle.classsynopsis;
ReflectionMethod
extends
ReflectionFunctionAbstract
&Constants;
public
const
int
ReflectionMethod::IS_STATIC
public
const
int
ReflectionMethod::IS_PUBLIC
public
const
int
ReflectionMethod::IS_PROTECTED
public
const
int
ReflectionMethod::IS_PRIVATE
public
const
int
ReflectionMethod::IS_ABSTRACT
public
const
int
ReflectionMethod::IS_FINAL
&Properties;
public
string
class
&InheritedProperties;
&Methods;
&InheritedMethods;
&reftitle.properties;
name
メソッド名
class
クラス名
&reftitle.constants;
ReflectionMethod の修飾子
ReflectionMethod::IS_STATIC
int
メソッドが static であることを示します。
PHP 7.4.0 より前のバージョンでは、この値は 1 でした。
ReflectionMethod::IS_PUBLIC
int
メソッドが public であることを示します。
PHP 7.4.0 より前のバージョンでは、この値は 256 でした。
ReflectionMethod::IS_PROTECTED
int
メソッドが protected であることを示します。
PHP 7.4.0 より前のバージョンでは、この値は 512 でした。
ReflectionMethod::IS_PRIVATE
int
メソッドが private であることを示します。
PHP 7.4.0 より前のバージョンでは、この値は 1024 でした。
ReflectionMethod::IS_ABSTRACT
int
メソッドが abstract であることを示します。
PHP 7.4.0 より前のバージョンでは、この値は 2 でした。
ReflectionMethod::IS_FINAL
int
メソッドが final であることを示します。
PHP 7.4.0 より前のバージョンでは、この値は 4 でした。
これらの定数の値は、PHP のバージョンが異なると変更される可能性があります。
これらの値を直接用いず、常に定数を使うことを推奨します。
&reftitle.changelog;
&Version;
&Description;
8.4.0
クラス定数が型付けされました。
8.0.0
ReflectionMethod::export は、削除されました。
&reference.reflection.entities.reflectionmethod;