Reflection
PHP Manual

The ReflectionMethod class

Introduction

The ReflectionMethod class reports information about a method.

Class synopsis

ReflectionMethod extends ReflectionFunctionAbstract implements Reflector {
/* Constants */
const integer IS_STATIC = 1 ;
const integer IS_PUBLIC = 256 ;
const integer IS_PROTECTED = 512 ;
const integer IS_PRIVATE = 1024 ;
const integer IS_ABSTRACT = 2 ;
const integer IS_FINAL = 4 ;
/* Properties */
public $class ;
/* Methods */
ReflectionMethod::__construct ( mixed $class , string $name )
public static string ReflectionMethod::export ( string $class , string $name [, bool $return = false ] )
public Closure ReflectionMethod::getClosure ( string $object )
public ReflectionClass ReflectionMethod::getDeclaringClass ( void )
public int ReflectionMethod::getModifiers ( void )
public ReflectionMethod ReflectionMethod::getPrototype ( void )
public mixed ReflectionMethod::invoke ( object $object [, mixed $parameter [, mixed $... ]] )
public mixed ReflectionMethod::invokeArgs ( object $object , array $args )
public bool ReflectionMethod::isAbstract ( void )
public bool ReflectionMethod::isConstructor ( void )
public bool ReflectionMethod::isDestructor ( void )
public bool ReflectionMethod::isFinal ( void )
public bool ReflectionMethod::isPrivate ( void )
public bool ReflectionMethod::isProtected ( void )
public bool ReflectionMethod::isPublic ( void )
public bool ReflectionMethod::isStatic ( void )
public void ReflectionMethod::setAccessible ( bool $accessible )
public string ReflectionMethod::__toString ( void )
/* Inherited methods */
final private void ReflectionFunctionAbstract::__clone ( void )
public ReflectionExtension ReflectionFunctionAbstract::getExtension ( void )
public string ReflectionFunctionAbstract::getName ( void )
abstract public void ReflectionFunctionAbstract::__toString ( void )
}

Properties

name

Method name

class

Class name

Predefined Constants

ReflectionMethod Node Types

ReflectionMethod::IS_STATIC

Indicates that the method is static.

ReflectionMethod::IS_PUBLIC

Indicates that the method is public.

ReflectionMethod::IS_PROTECTED

Indicates that the method is protected.

ReflectionMethod::IS_PRIVATE

Indicates that the method is private.

ReflectionMethod::IS_ABSTRACT

Indicates that the method is abstract.

ReflectionMethod::IS_FINAL

Indicates that the method is final.

Table of Contents


Reflection
PHP Manual