The ReflectionMethod class
ReflectionMethod
&reftitle.intro;
The ReflectionMethod class reports
information about a method.
&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
Method name
class
Class name
&reftitle.constants;
ReflectionMethod Modifiers
ReflectionMethod::IS_STATIC
int
Indicates that the method is static.
Prior to PHP 7.4.0, the value was 1.
ReflectionMethod::IS_PUBLIC
int
Indicates that the method is public.
Prior to PHP 7.4.0, the value was 256.
ReflectionMethod::IS_PROTECTED
int
Indicates that the method is protected.
Prior to PHP 7.4.0, the value was 512.
ReflectionMethod::IS_PRIVATE
int
Indicates that the method is private.
Prior to PHP 7.4.0, the value was 1024.
ReflectionMethod::IS_ABSTRACT
int
Indicates that the method is abstract.
Prior to PHP 7.4.0, the value was 2.
ReflectionMethod::IS_FINAL
int
Indicates that the method is final.
Prior to PHP 7.4.0, the value was 4.
The values of these constants may change between PHP versions.
It is recommended to always use the constants
and not rely on the values directly.
&reftitle.changelog;
&Version;
&Description;
8.4.0
The class constants are now typed.
8.0.0
ReflectionMethod::export was removed.
&reference.reflection.entities.reflectionmethod;